+ Reply to Thread
Results 1 to 2 of 2

A simpler way than using nested IF statements?

  1. #1
    Registered User
    Join Date
    11-04-2021
    Location
    USA
    MS-Off Ver
    365
    Posts
    13

    A simpler way than using nested IF statements?

    I would like to write a formula that uses more than two variables for an expression, I've attached a spreadsheet to show what I'm thinking of. I had been using nested IF statements to make things like that work, but I'm hoping that with the more recent releases of Excel that there is something simpler that can do the same thing.

    Here's what I have
    Managing multiple variables.xlsx

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: A simpler way than using nested IF statements?

    I'm not sure exactly what you are looking for, since it does not seem to be included in the sample that you have provided.

    That being said, I think you are looking to return the corresponding values of the variables in the array table under where it says "Calculation table".

    If so, put this formula in J2 and drag over and down:
    =INDEX($B:$B,MATCH(D2,$A:$A,0))

    Alternatively, you can put this array formula in J2, and have it auto-spill into the proper number of cells instead of dragging formulas:
    =XLOOKUP(D2:E3,A2:A8,B2:B8)
    Last edited by 63falcondude; 10-03-2023 at 01:08 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. FILTER FUNCTION nested if multi, better/simpler expression?
    By StephanRS in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-21-2023, 05:19 PM
  2. Replacing multiple IF statements with a simpler formla
    By computerblue in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-02-2015, 12:07 PM
  3. Simpler way than 10+ nested IF statements?
    By jobinv123 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-14-2015, 11:40 PM
  4. [SOLVED] Simpler way than 11+ If Statements?
    By ker9 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 08-28-2015, 04:24 PM
  5. Replies: 2
    Last Post: 05-22-2013, 05:39 PM
  6. Help make this simpler (if statements)
    By harmbasi in forum Excel General
    Replies: 3
    Last Post: 04-13-2012, 02:58 PM
  7. A simpler way to do nested vlookups?
    By bsoper in forum Excel General
    Replies: 4
    Last Post: 01-06-2011, 03:43 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1