+ Reply to Thread
Results 1 to 7 of 7

Adding nested IF and XLOOKUP

  1. #1
    Registered User
    Join Date
    01-06-2025
    Location
    London, England
    MS-Off Ver
    365
    Posts
    3

    Post Adding nested IF and XLOOKUP

    Chaps

    I am struggling to add nested IF & XLOOKUP into a single cell

    I have three manufactures tables set up and would like to get excel to look at the correct table depending on the manufacture i select

    I have the workbook cell working just fine but only with 1 manucature at a time

    These are the three funcyions i want to combine but as i said i have only had sucsess when just one manufacturer is selected



    =IF($AJ$17="Daikin",XLOOKUP(AL19,'Fan Coils'!N4:N14,'Fan Coils'!R4:R14,0,1))


    =IF($AJ$17="Mitsubish",XLOOKUP(AL19,'Fan Coils'!N23:N31,'Fan Coils'!R23:R31,0,1))


    =IF($AJ$17="Toshiba",XLOOKUP(AL19,'Fan Coils'!N40:N52,'Fan Coils'!R40:R52,0,1))

    Thanks for your help

    Stay safe

    Rob

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,255

    Re: Adding nested IF and XLOOKUP

    Welcome to the forum.

    There's a typo in your profile - should be 365 (not 360).

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. The sample layout accurately matches that of your real data. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,255

    Re: Adding nested IF and XLOOKUP

    You could try this:

    =IF($AJ$17="Daikin",XLOOKUP(AL19,'Fan Coils'!N4:N14,'Fan Coils'!R4:R14,0,1),IF($AJ$17="Mitsubish",XLOOKUP(AL19,'Fan Coils'!N23:N31,'Fan Coils'!R23:R31,0,1),IF($AJ$17="Toshiba",XLOOKUP(AL19,'Fan Coils'!N40:N52,'Fan Coils'!R40:R52,0,1))))

  4. #4
    Registered User
    Join Date
    01-06-2025
    Location
    London, England
    MS-Off Ver
    365
    Posts
    3

    Re: Adding nested IF and XLOOKUP

    Cheers for that I will give it a whirl now and let you know how i get on

    Thanks very much

    Rob

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,255

    Re: Adding nested IF and XLOOKUP

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  6. #6
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,676

    Re: Adding nested IF and XLOOKUP

    With a help column the formula could be a lot easier.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  7. #7
    Registered User
    Join Date
    01-06-2025
    Location
    London, England
    MS-Off Ver
    365
    Posts
    3

    Re: Adding nested IF and XLOOKUP

    Cheers mate

    I am sure you are righ but its Baby steps for me at the moment

    Thanks for helping

+ 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. [SOLVED] Nested XLOOKUP help
    By ExcelDavid5 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-29-2024, 08:30 AM
  2. [SOLVED] XLOOKUP (maybe nested), INDIRECT, and Excel tables to get value
    By Apaka in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 02-18-2024, 12:07 PM
  3. [SOLVED] Nested Let Function with IF and Xlookup
    By yarlachiru in forum Excel General
    Replies: 14
    Last Post: 07-14-2023, 06:50 AM
  4. [SOLVED] Excel Nested Xlookup Question
    By CzechCzar in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-30-2023, 07:01 PM
  5. [SOLVED] Nested XLOOKUP/COUNTA
    By fractal0011 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-21-2023, 01:18 PM
  6. Nested Xlookup
    By vineet_sn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-12-2022, 05:13 PM
  7. Nested Xlookup hurts my brain, Need Help
    By Tmbrcrzr in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-04-2021, 02:16 AM

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