+ Reply to Thread
Results 1 to 8 of 8

Multiple IF statements shorter way

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    640

    Multiple IF statements shorter way

    Dear all, Here is a five if statement formula need to shorter way . currently I am doing all together but it looks big formula . is there any alternative small formula to solve my issue ?

    H2=IF(B2=G2,"cd com","")
    H2=IF(C2=G2,"cd def","")
    H2=IF(D2=G2,"cd noo","")
    H2=IF(E2=G2,"cu ope","")
    H2=IF(F2=G2,"cd cdn","")

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,605

    Re: Multiple IF statements shorter way

    What does your " big formula" look like?

  3. #3
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Multiple IF statements shorter way

    Maybe:

    =IFERROR(INDEX({"cd com","cd def","cd noo"," cu ope"," cd cdn"},MATCH(G2,B2:F2,0)),"")

  4. #4
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Multiple IF statements shorter way

    Mine came out longer than I thought it would, but it works

    Enter this Array Formula using Control + Shift + Enter
    =IFERROR(CHOOSE(SUM((G2=B2:F2)*{1,2,3,4,5}),"cd com","cd def","cd noo"," cu ope"," cd cdn"),"")
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  5. #5
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    640

    Re: Multiple IF statements shorter way

    Hi Ragulduy & Speshul , both of your formula is working excellent . thanks for your time

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,119

    Re: Multiple IF statements shorter way

    As a third option:
    Formula: copy to clipboard
    =IFERROR(INDEX({"cd com","cd def","cd noo","cu ope","cd cdn"},CHOOSE(G2,B2,C2,D2,E2,F2)),"")


    But probably no better than the options you have already.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,119

    Re: Multiple IF statements shorter way

    Thanks for the rep.

  8. #8
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,883

    Re: Multiple IF statements shorter way

    Or maybe a HLOOKUP formula?
    Attached Files Attached Files
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

+ 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 if statements containing multiple and statements
    By John M. in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-22-2014, 11:48 PM
  2. Is there a shorter way to use an array to look up multiple values?
    By sbrnard in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-06-2014, 04:14 PM
  3. Multiple nested IF statements and AND statements
    By TonyGetz in forum Excel General
    Replies: 2
    Last Post: 12-14-2010, 03:07 AM
  4. Shorter SUMPRODUCT Formula (Multiple Criteria)
    By MobiusTrip in forum Excel General
    Replies: 5
    Last Post: 06-24-2010, 02:13 AM
  5. Replies: 12
    Last Post: 05-15-2009, 08:38 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