+ Reply to Thread
Results 1 to 7 of 7

Combination of +IF formulas

  1. #1
    Registered User
    Join Date
    07-14-2023
    Location
    London
    MS-Off Ver
    2016
    Posts
    2

    Combination of +IF formulas

    Hi,

    I would love some help!

    I have a number of formula which returns some text if the numbers are within a range, but I need to have them in one cell.

    i.e. all the following formulas are in different cells and I need them in one...

    =IF(((O7>=0)*(O7<=26))=1, "U", " ")
    =IF(((O7>=27)*(O7<=35))=1, "L1P", " ")
    =IF(((O7>=36)*(O7<=44))=1, "L1M", " ")
    =IF(((O7>=45)*(O7<=53))=1, "L1D", " ")
    =IF(((O7>=54)*(O7<=62))=1, "L2P", " ")
    =IF(((O7>=63)*(O7<=71))=1, "L2M", " ")
    =IF(((O7>=72)*(O7<=100))=1, "L2D", " ")

    Is this possible?

    Jon

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

    Re: Combination of +IF formulas

    Try this:

    =LOOKUP(O7,{0,27,36,45,54,63,72},{"U","L1P","L1M",L1D","L2P","L2M","L2D"})

    Welcome to the forum.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,737

    Re: Combination of +IF formulas

    You could set up a small table in two adjacent columns, like this:

    . 0 ... U
    27 ...L1P
    36 ... L1M
    45 ... L1D
    54 ... L2P
    63 ... L2M
    72 ... L2D

    Suppose this is in columns X and Y. Then you can use this formula:

    =VLOOKUP(O7,$X:$Y,2)

    instead of having multiple IFs.

    Hope this helps.

    Pete

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,443

    Re: Combination of +IF formulas

    pls try this formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-14-2023
    Location
    London
    MS-Off Ver
    2016
    Posts
    2

    Re: Combination of +IF formulas

    Thank you everyone that was so helpful!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,986

    Re: Combination of +IF formulas

    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.

    Also, if you have not already done so, you may not be aware that you can thank 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 all those who offered help.

  7. #7
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,443

    Re: Combination of +IF formulas

    @Jonathan_Green You're Welcome. Glad to help . Thank You for the feedback.

+ 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. Need help with formulas or Solution in combination of IF, OR & AND
    By Vinod Krishna.C in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-05-2020, 06:02 AM
  2. [SOLVED] How to get a combination of IF and And formulas to bring results?
    By jgomez in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-21-2016, 05:55 PM
  3. [SOLVED] Combination of IF, OR AND formulas
    By WendyvdV in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-14-2015, 09:57 AM
  4. combination of =OFFSET() and =ADDRESS() formulas with =VLOOKUP() formula
    By okcsteve in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-24-2015, 12:34 AM
  5. Not Sure what formula will complete the task?? Combination of formulas??
    By Bmacnab in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-16-2014, 12:42 PM
  6. Combination Sum / Vlookup / Min / If Formulas
    By Formula Junkie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-09-2014, 09:18 PM
  7. Combination of formulas
    By Steptwo in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-15-2013, 12:24 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