+ Reply to Thread
Results 1 to 6 of 6

Any alternative to Multiple IF statements?

Hybrid View

lvwpaw Any alternative to Multiple... 11-19-2015, 09:57 AM
BadlySpelledBuoy Re: Any alternative to... 11-19-2015, 10:01 AM
lvwpaw Re: Any alternative to... 11-19-2015, 10:11 AM
Pete_UK Re: Any alternative to... 11-19-2015, 10:06 AM
lvwpaw Re: Any alternative to... 11-19-2015, 10:32 AM
BadlySpelledBuoy Re: Any alternative to... 11-19-2015, 10:16 AM
  1. #1
    Registered User
    Join Date
    11-19-2015
    Location
    Surrey, England
    MS-Off Ver
    Office 365
    Posts
    3

    Question Any alternative to Multiple IF statements?

    Hello

    I need to return a list of names to a cell if the criteria in another cell is met. Is there are better and quicker way of doing this as I need to do it for about 50 different cells!

    I currently have the following formula in cell A1 which says if C25 cell has the text "Emerging" then get me the contents of B25 (which is a name) followed by a hard return. I then do loads of IF statements so eventually I have a list of names (column B) for those who has column C as Emerging. I've only written it for about 10 rows but need to check 30 rows.

    =IF($C25="Emerging",+$B25&CHAR(10),"")
    &IF($C26="Emerging",+$B26&CHAR(10),"")
    &IF($C27="Emerging",+$B27&CHAR(10),"")
    &IF($C28="Emerging",+$B28&CHAR(10),"")
    &IF($C29="Emerging",+$B29&CHAR(10),"")
    &IF($C30="Emerging",+$B30&CHAR(10),"")
    &IF($C31="Emerging",+$B31&CHAR(10),"")
    &IF($C32="Emerging",+$B32&CHAR(10),"")
    &IF($C33="Emerging",+$B33&CHAR(10),"")
    &IF($C34="Emerging",+$B34&CHAR(10),"")

    Many thanks for any help!

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,908

    Re: Any alternative to Multiple IF statements?

    How about:

    =INDEX(B25:B55,MATCH("Emerging",C25:C55,0))&CHAR(10)

    Obviously change the range references to suit.

    BSB

  3. #3
    Registered User
    Join Date
    11-19-2015
    Location
    Surrey, England
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Any alternative to Multiple IF statements?

    Thanks so much BadlySpelledBuoy. It works but only returns one match whereas I have multiple cells with "Emerging" in so need a whole list of names. Any thoughts?

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

    Re: Any alternative to Multiple IF statements?

    Use the ConcatAll UDF from Tigeravatar, available here:

    http://www.excelforum.com/tips-and-t...geravatar.html

    Scroll down to get the latest version.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    11-19-2015
    Location
    Surrey, England
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Any alternative to Multiple IF statements?

    Thanks Pete_UK. Had a read through of the code and looks like it should work! Thanks. Multiple answers is good for me so will use your first version.

    Thanks both for your speedy help.

  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,908

    Re: Any alternative to Multiple IF statements?

    Oh, I see what you're trying to do now.
    For that you'll need to see Pete's response above.

    BSB

+ 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. Alternative to Nested If Statements
    By Kashus in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-10-2015, 07:23 PM
  2. Is there an alternative to IF(AND) statements
    By barc0d3guy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-09-2013, 11:15 AM
  3. Alternative to multiple nested IF statements to SUM certain values
    By JTR616 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-24-2013, 06:23 PM
  4. Alternative to multipe ELSE IF statements?
    By Winterreise in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-17-2012, 09:39 AM
  5. Alternative to using multiple nested IF statements
    By maacmaac in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-15-2011, 12:51 PM
  6. Alternative to multiple nested if statements
    By booo in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-20-2010, 05:53 PM
  7. alternative to too many nested IF statements
    By lintcoop in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-06-2009, 04:23 PM

Tags for this Thread

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