+ Reply to Thread
Results 1 to 13 of 13

Trying to get an IF formula to show more than one answer

  1. #1
    Registered User
    Join Date
    05-09-2012
    Location
    reading
    MS-Off Ver
    2010
    Posts
    32

    Trying to get an IF formula to show more than one answer

    I am trying to use a formula to show the following sentence, as the information changes monthly:

    IF it is a Class A project, [B]AND[B/] is Completed, THEN show the project name.

    I believe this is what I need but I think it comes out with #VALUE! because I am trying to take more than one cell into account:

    =IF(AND(AS9:AS48="Completed",H9:H48="A"),F9:F48,"")

    Could anyone help with this so my formula shows all project names that are completed AND class A?

    P.S. I'm using a COUNTIFS formula which comes up with the same answer BUT I don't want to count the number of projects, I want the project names to show...

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

    Re: Trying to get an IF formula to show more than one answer

    Could you please post a sample sheet showing what you have and what you need?

  3. #3
    Registered User
    Join Date
    10-22-2013
    Location
    Scotland
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Trying to get an IF formula to show more than one answer

    Try:

    Please Login or Register  to view this content.
    Then copy down instead of trying to work with a range in one cell.

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,646

    Re: Trying to get an IF formula to show more than one answer

    Look like you want to establish a list based on multi criterias, and IF is not a choice.
    May be INDEX and SMALL can. Try to upload an example to see what we can do.
    Quang PT

  5. #5
    Registered User
    Join Date
    05-09-2012
    Location
    reading
    MS-Off Ver
    2010
    Posts
    32

    Re: Trying to get an IF formula to show more than one answer

    Hi Finlay,

    I have tried what you have suggested originally. In essence yes that is what I want, but I wasn't sure if the answers could be shown in one cell rather than having to copy down....

  6. #6
    Registered User
    Join Date
    10-22-2013
    Location
    Scotland
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Trying to get an IF formula to show more than one answer

    As the others have said, would you be able to post a sheet as example? It would be helpful to see what the sheet looks like.

  7. #7
    Registered User
    Join Date
    05-09-2012
    Location
    reading
    MS-Off Ver
    2010
    Posts
    32

    Re: Trying to get an IF formula to show more than one answer

    Will do Finlay et al The work I am doing is company confidential so I will make it user friendly and change the formula slightly, accordingly.

  8. #8
    Registered User
    Join Date
    05-09-2012
    Location
    reading
    MS-Off Ver
    2010
    Posts
    32

    Re: Trying to get an IF formula to show more than one answer

    I have attached a sample of the data. Hope this helps....
    Attached Files Attached Files

  9. #9
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,646

    Re: Trying to get an IF formula to show more than one answer

    Type this array formula in which cell you want the list in:
    Please Login or Register  to view this content.
    ARRAY formula must be confirmed by CTRL-SHIFT-ENTER rather than Enter only.
    Drag down as far as you need

  10. #10
    Registered User
    Join Date
    10-22-2013
    Location
    Scotland
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Trying to get an IF formula to show more than one answer

    I'm not sure it is possible to do this, though I'm sure someone will correct me if I'm wrong. It might be simpler to copy down the formula above and sort the results by the new formula to get a list of completed class A projects.

  11. #11
    Registered User
    Join Date
    05-09-2012
    Location
    reading
    MS-Off Ver
    2010
    Posts
    32

    Re: Trying to get an IF formula to show more than one answer

    Looking at it, I think you're right

    No worries though - I think the best way to do it is a pivot table.

    Thanks anyway!

  12. #12
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Trying to get an IF formula to show more than one answer

    Try this array formula**

    =IFERROR(INDEX(A:A,SMALL(IF(B$3:B$16="A",IF(C$3:C$16="Completed",ROW(C$3:C$16))),ROWS(A$1:A1))),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down until you get blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  13. #13
    Valued Forum Contributor
    Join Date
    02-05-2013
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2013
    Posts
    571

    Re: Trying to get an IF formula to show more than one answer

    If you want the result by column, modified formula from bebo021999 (array formula, use ctrl+shift+enter):
    Please Login or Register  to view this content.
    Click (*) if you received helpful response.

    Regards,
    David

+ 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] Trying to get an IF formula to show more than one answer
    By c.drysdale89 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-10-2013, 09:55 AM
  2. formula to show a text answer
    By paulaustralia in forum Excel General
    Replies: 2
    Last Post: 08-24-2010, 11:35 PM
  3. Replies: 3
    Last Post: 08-03-2006, 12:35 PM
  4. [SOLVED] Need a formula to calculate greater than & show answer as a %
    By dnice66 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-28-2006, 02:10 AM
  5. How to show the formula and the answer?
    By Susan in forum Excel General
    Replies: 3
    Last Post: 03-30-2006, 08:35 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