ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Excel Help

    Scheduled Pinned Locked Moved IT Discussion
    11 Posts 6 Posters 591 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dbeatoD
      dbeato @hobbit666
      last edited by

      @hobbit666 said in Excel Help:

      Desktop1 Microsoft Windows 10 Pro 10.0.19041
      Desktop2 Microsoft Windows 10 Pro 10.0.19042
      Desktop3 Microsoft Windows 10 Pro 10.0.18363
      Desktop4 Microsoft Windows 10 Pro 10.0.19041
      Desktop5 Microsoft Windows 10 Pro 10.0.19041
      Desktop6 Microsoft Windows 10 Pro 10.0.19041
      Desktop7 Microsoft Windows 10 Pro 10.0.19042

      Here
      6dd8e64d-8203-475e-b8d2-464de2f8f789-image.png

      I have an IFS Formulas as below:

      =IFS(F2=$B$12,$C$12,F2=$B$13,$C$13,F2=$B$14,$C$14,F2=$B$15,$C$15,F2=$B$16,$C$16,F2=$B$17,$C$17,F2=$B$18,$C$18)

      With a list of the Windows 10 Builds that can be on another sheet or at the bottom.

      ffaaeed2-87fe-4184-a0df-c4d847dbcf62-image.png

      hobbit666H 1 Reply Last reply Reply Quote 0
      • hobbit666H
        hobbit666 @dbeato
        last edited by

        @dbeato Thanks for that,
        No idea how it works but it does 😄

        1 DashrenderD 2 Replies Last reply Reply Quote 0
        • 1
          1337 @hobbit666
          last edited by

          @hobbit666 said in Excel Help:

          @dbeato Thanks for that,
          No idea how it works but it does 😄

          The IFS formula is just a bunch of "if" stacked together

          =IFS(F2=$B$12,$C$12,F2=$B$13,$C$13,F2=$B$14,$C$14,F2=$B$15,$C$15,F2=$B$16,$C$16,F2=$B$17,$C$17,F2=$B$18,$C$18)

          Is the same as:

          if F2=B12 then result=C12
          if F2=B13 then result=C13
          if F2=B14 then result=C14
          if F2=B15 then result=C15
          etc

          So basically just looking at the table with the windows build numbers and versions.

          The $ inside the cell names is just to tell Excel what to do with it when you copy the formula to another cell.
          $B$12 just means B12 will always be the absolute cell B12 regardless of where you copy the formula.

          hobbit666H 1 Reply Last reply Reply Quote 2
          • DashrenderD
            Dashrender @hobbit666
            last edited by

            Interesting.
            The IFS statement breaks down like this.

            If $B$12 (which is column B, row 12), then enter value from $C$12 (i.e. the data from column C, row 12),
            It keeps checking like this until there is a match, or the end is reached.

            1 1 Reply Last reply Reply Quote 1
            • 1
              1337 @Dashrender
              last edited by 1337

              @dashrender said in Excel Help:

              Interesting.
              The IFS statement breaks down like this.

              If $B$12 (which is column B, row 12), then enter value from $C$12 (i.e. the data from column C, row 12),
              It keeps checking like this until there is a match, or the end is reached.

              Excel actually has a lookup function that works exactly like this. It would probably be better in this case. Less to write and easier to add more values.

              =LOOKUP(F12, $B$12:$B$25, $C$12:$C$25)

              Then you can add some more rows with version numbers if needed. Without changing any formulas.

              1 Reply Last reply Reply Quote 0
              • hobbit666H
                hobbit666 @1337
                last edited by

                @pete-s said in Excel Help:

                The IFS formula is just a bunch of "if" stacked together

                Is the same as:

                if F2=B12 then result=C12
                if F2=B13 then result=C13
                if F2=B14 then result=C14
                if F2=B15 then result=C15
                etc

                Yeah when i look at the whole thing like that makes sense 🙂

                @Dashrender

                If $B$12 (which is column B, row 12), then enter value from $C$12 (i.e. the data from column C, row 12),

                It keeps checking like this until there is a match, or the end is reached.

                Was overwhelmed by all the $ in there 😄

                1 Reply Last reply Reply Quote 0
                • J
                  JasGot
                  last edited by JasGot

                  @hobbit666 said in Excel Help:

                  Desktop1 Microsoft Windows 10 Pro 10.0.19041
                  Desktop2 Microsoft Windows 10 Pro 10.0.19042
                  Desktop3 Microsoft Windows 10 Pro 10.0.18363
                  Desktop4 Microsoft Windows 10 Pro 10.0.19041
                  Desktop5 Microsoft Windows 10 Pro 10.0.19041
                  Desktop6 Microsoft Windows 10 Pro 10.0.19041
                  Desktop7 Microsoft Windows 10 Pro 10.0.19042

                  No Need for a bunch of Nested IF= statements.

                  VLOOKUP is made for this. Although XLOOKUP is the new VLookup.

                  Here's the formula in Column I of my screen shot. Don't worry about the $, they just mean the formula should not auto advance when you copy and paste to other cells.

                  =VLOOKUP(H4,$C$21:$D$25,2,FALSE)
                  The "False" means EXACT Match, please leave it as False.

                  9b72f209-a52a-4540-9fd0-79c31b1fbe8a-image.png

                  JaredBuschJ 1 2 Replies Last reply Reply Quote 1
                  • JaredBuschJ
                    JaredBusch @JasGot
                    last edited by

                    @jasgot said in Excel Help:

                    @hobbit666 said in Excel Help:

                    Desktop1 Microsoft Windows 10 Pro 10.0.19041
                    Desktop2 Microsoft Windows 10 Pro 10.0.19042
                    Desktop3 Microsoft Windows 10 Pro 10.0.18363
                    Desktop4 Microsoft Windows 10 Pro 10.0.19041
                    Desktop5 Microsoft Windows 10 Pro 10.0.19041
                    Desktop6 Microsoft Windows 10 Pro 10.0.19041
                    Desktop7 Microsoft Windows 10 Pro 10.0.19042

                    No Need for a bunch of Nested IF= statements.

                    VLOOKUP is made for this. Although XLOOKUP is the new VLookup.

                    Here's the formula in Column I of my screen shot. Don't worry about the $, they just mean the formula should not auto advance when you copy and paste to other cells.

                    =VLOOKUP(H4,$C$21:$D$25,2,FALSE)
                    The "False" means EXACT Match, please leave it as False.

                    9b72f209-a52a-4540-9fd0-79c31b1fbe8a-image.png

                    Mostly correct, except he doe snot have the version split into it's own column.

                    He only has A and B as noted.

                    @hobbit666 said in Excel Help:

                    A | B
                    Desktop1 Microsoft Windows 10 Pro 10.0.19041

                    So it would be more like this, assuming that the data starts in row 2 and the lookup table starts on Row 21

                    =VLOOKUP(RIGHT(B2,10),$A$21:$B$25,2,FALSE)
                    
                    hobbit666H 1 Reply Last reply Reply Quote 1
                    • hobbit666H
                      hobbit666 @JaredBusch
                      last edited by

                      @jaredbusch said in Excel Help:

                      Mostly correct, except he doe snot have the version split into it's own column.

                      He only has A and B as noted.

                      @hobbit666 said in Excel Help:

                      A | B
                      Desktop1 Microsoft Windows 10 Pro 10.0.19041

                      So it would be more like this, assuming that the data starts in row 2 and the lookup table starts on Row 21

                      =VLOOKUP(RIGHT(B2,10),$A$21:$B$25,2,FALSE)
                      

                      True,
                      I did separate it to get the other ways working 🙂
                      But if i needed to redo it on the untouched data, this would work to

                      Thanks All

                      1 Reply Last reply Reply Quote 0
                      • 1
                        1337 @JasGot
                        last edited by 1337

                        @jasgot said in Excel Help:

                        No Need for a bunch of Nested IF= statements.
                        VLOOKUP is made for this. Although XLOOKUP is the new VLookup.

                        I did already mention LOOKUP in a couple of posts above.

                        But the power of the IFS is really when you just have a few different options and put them directly in the formula. Then you don't need a lookup table at all.

                        The SWITCH makes it even better as that is the equivalent to a case statement.

                        =SWITCH(F2, "10.0.19043", "21H1", "10.0.19042", "20H2", "10.0.19041", "2004", "10.0.18363", "1909", "10.0.17763", "1809", "OLD!")

                        1 Reply Last reply Reply Quote 1
                        • 1 / 1
                        • First post
                          Last post