+ Reply to Thread
Results 1 to 15 of 15

URGENT - Multiple IF formulas for a single cell!

  1. #1
    Registered User
    Join Date
    02-28-2014
    Location
    Newcastle, England
    MS-Off Ver
    Excel 2013
    Posts
    6

    URGENT - Multiple IF formulas for a single cell!

    Hello all!

    Example Sheet for Excel Formula.xlsx

    I am currently working on a worksheet where I have got quantities of a chemical in 3 different dilutions 1:1, 1:10 and 1:40. Now I need a 4th column next to each one of these which will analyse the values in the first three columns and display the one that is of most use.
    I need the formula to prioritise based on:
    1 - Numerical values over blank cells or those displaying "ND"
    2 - If there are more than one numerical value the cell should prioritise displaying 1:40 before 1:10 before 1:1

    I have attached a mock up of the data I am working on with columns A-C displaying the data for the dilutions and column D showing the correct value from thouse available in A-C. I have filled in the correct value to show what I am trying to achieve, but the data I am working on is significantly larger, (33 groups of 4 columns and 500+ rows), hence the need for a formula to do it.

    I had a look at this web page http://www.techonthenet.com/excel/fo.../if_nested.php which seems to be along the right lines, but I cant seem to make it work for my data.

    Any help would be appreciated,


    M

  2. #2
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: URGENT - Multiple IF formulas for a single cell!

    copy and paste this formula

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    12-16-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    109

    Re: URGENT - Multiple IF formulas for a single cell!

    I have easier solution
    =IF(MAX(A2:C2)>0,MAX(A2:C2)," ND")

    http://www.easyexcelanswers.com

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: URGENT - Multiple IF formulas for a single cell!

    Try this one

    =IF(COUNTIF(A2:C2,"ND")=3,"ND",MAX(A2:C2))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Registered User
    Join Date
    02-28-2014
    Location
    Newcastle, England
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: URGENT - Multiple IF formulas for a single cell!

    Quote Originally Posted by easyexcelanswers View Post
    I have easier solution
    =IF(MAX(A2:C2)>0,MAX(A2:C2)," ND")
    The problem with this is it seems to populate the cell with the largest answer, which isn't what I want. For example, when pasted into the spreadsheet that I attached in cell D6 it shows 1.27, when it should show 1.20.
    Any ideas how to work around that?

  6. #6
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: URGENT - Multiple IF formulas for a single cell!

    Did you try my formula?

    My formula doesn't look for the Max value, since on the 2nd condition, if there's more than 2 numerical formula, it should prioritize 1:40 before 1:10 before 1:1

  7. #7
    Registered User
    Join Date
    02-28-2014
    Location
    Newcastle, England
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: URGENT - Multiple IF formulas for a single cell!

    Quote Originally Posted by dluhut View Post
    copy and paste this formula

    Please Login or Register  to view this content.
    This seems to work perfectly, going to apply it to the real spreadsheet and make sure. Thank you so much for the help!!

  8. #8
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: URGENT - Multiple IF formulas for a single cell!

    Quote Originally Posted by M.Knight View Post
    This seems to work perfectly, going to apply it to the real spreadsheet and make sure. Thank you so much for the help!!
    If it does work, remember to mark this thread as solved =)

  9. #9
    Registered User
    Join Date
    02-28-2014
    Location
    Newcastle, England
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: URGENT - Multiple IF formulas for a single cell!

    Ok, it works in one respect, but it is displaying a blank cell if the 1:40 cell (Column C) has a blank cell, even if B or A have a numerical value in the cell. Any ideas how to fix that?

  10. #10
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: URGENT - Multiple IF formulas for a single cell!

    Quote Originally Posted by M.Knight View Post
    Ok, it works in one respect, but it is displaying a blank cell if the 1:40 cell (Column C) has a blank cell, even if B or A have a numerical value in the cell. Any ideas how to fix that?
    I tried to look check with inputting a new row where column A and B has values and column C is blank, and I still got the result from column B.

    Check if your column C is indeed blank. Because, if column C has a space, to our eye, although it's blank, in fact it's not.

    The fastest way to delete those "spaces" that seems to be blank in our eyes, filter each column, choose '(blank)' and then highlight those "blanks" and on your keyboard press 'Delete'

  11. #11
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: URGENT - Multiple IF formulas for a single cell!

    ok This one gives the results as you suggested

    =IF(COUNTIF(A2:C2,"ND")=3,"ND",IF(COUNT(A2:C2)=3,AVERAGE(A2:C2),MAX(A2:C2)))

  12. #12
    Registered User
    Join Date
    02-28-2014
    Location
    Newcastle, England
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: URGENT - Multiple IF formulas for a single cell!

    Quote Originally Posted by dluhut View Post
    I tried to look check with inputting a new row where column A and B has values and column C is blank, and I still got the result from column B.

    Check if your column C is indeed blank. Because, if column C has a space, to our eye, although it's blank, in fact it's not.

    The fastest way to delete those "spaces" that seems to be blank in our eyes, filter each column, choose '(blank)' and then highlight those "blanks" and on your keyboard press 'Delete'
    Yep that was it!! The ND had a space after it and the black cells also has a space in them. Solved by replacing all the "ND " cells with "ND".

    Solved, thank you so much for your help, random internet genius!

  13. #13
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: URGENT - Multiple IF formulas for a single cell!

    Quote Originally Posted by M.Knight View Post
    Yep that was it!! The ND had a space after it and the black cells also has a space in them. Solved by replacing all the "ND " cells with "ND".

    Solved, thank you so much for your help, random internet genius!
    Glad that I could be of help. Remember to mark this thread as solved =)

  14. #14
    Registered User
    Join Date
    02-28-2014
    Location
    Newcastle, England
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: URGENT - Multiple IF formulas for a single cell!

    Quote Originally Posted by dluhut View Post
    Glad that I could be of help. Remember to mark this thread as solved =)
    Ok, not quite solved.

    The issue I am encountering now is that if A and C are blank and B is "ND" the cell shows "Incomplete Formula".

    In any situation with no numerical value in any of the 3 cells I need cell D to show ND, UNLESS there are no values in any cell (all empty) in which case it can say Incomplete Formula.

    Sorry to bother again.

  15. #15
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: URGENT - Multiple IF formulas for a single cell!

    Quote Originally Posted by M.Knight View Post
    Ok, not quite solved.

    The issue I am encountering now is that if A and C are blank and B is "ND" the cell shows "Incomplete Formula".

    In any situation with no numerical value in any of the 3 cells I need cell D to show ND, UNLESS there are no values in any cell (all empty) in which case it can say Incomplete Formula.

    Sorry to bother again.
    I've modified the formula a little.

    Please Login or Register  to view this content.

+ 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. Using Multiple Formulas in A Single Cell
    By jlsCreative in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-05-2013, 12:47 PM
  2. Multiple Formulas in a single Cell
    By Shazz in forum Excel General
    Replies: 4
    Last Post: 01-10-2012, 07:02 AM
  3. Need multiple formulas in single cell
    By Deltaeagle in forum Excel General
    Replies: 2
    Last Post: 07-10-2009, 09:04 AM
  4. Entering Multiple Formulas for a single cell
    By modest_16081982 in forum Excel General
    Replies: 2
    Last Post: 07-30-2007, 09:58 PM
  5. [SOLVED] Using a single cell in multiple formulas
    By ebethcat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-26-2005, 05:15 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