+ Reply to Thread
Results 1 to 4 of 4

I think I need a nested If function and maybe an "ISBLANK" function

  1. #1
    Registered User
    Join Date
    02-27-2013
    Location
    Lodnon
    MS-Off Ver
    Excel 2003
    Posts
    9

    I think I need a nested If function and maybe an "ISBLANK" function

    Hi guys,

    So I have three columns where only one column contains a number and the other 2 columns are blank. I need to multiply each column by a different factor depending on which column it lands in.

    So if the number falls in column A, then multiply by 100, if the number falls in column B then multiply by 100 and column C by 10. Answer to go into D1

    Thanks for your help.
    Last edited by GWells; 03-06-2013 at 07:50 AM.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,797

    Re: I think I need a nested If function and maybe an "ISBLANK" function

    can you have columns that are not blank
    so
    A1 = blank B1=number c1=number
    and what to do then

    =IF(ISNUMBER(A1), A1*100, IF(ISNUMBER(B1), B1*100, IF(ISNUMBER(C1), C1*10, "what to do if all blank"))

    BUT this will not test to see if you have more than one number
    otherwise

    IF ( AND(ISNUMBER(A1), B1="", C1="") , A1*100 ,
    IF ( AND(ISNUMBER(B1), A1="", C1="") , B1*100 ,
    IF ( AND(ISNUMBER(C1), A1="", B1="") , C1*10 , " what to do if more numbers" )))

    =IF(AND(ISNUMBER(A1),B1="",C1=""),A1*100,IF(AND(ISNUMBER(B1),A1="",C1=""),B1*100,IF(AND(ISNUMBER(C1),A1="",B1=""),C1*10," what to do if more numbers,or all blanks")))

    or
    =IF(AND(ISNUMBER(A1),ISBLANK(B1),ISBLANK(C1)),A1*100,IF(AND(ISNUMBER(B1),ISBLANK(A1),ISBLANK(C1)),B1*100,IF(AND(ISNUMBER(C1),ISBLANK(A1),ISBLANK(B1)),C1*10," what to do if more numbers or all blank")))

    NOTE - if you are using a formula to fill the blanks ie ""
    then is blank will not work -as ISBLANK looks for a NULL and not an empty string
    "" creates an empty string and ISBLANK will return a true , even though the cell is empty
    Last edited by etaf; 03-06-2013 at 08:10 AM.

  3. #3
    Registered User
    Join Date
    02-27-2013
    Location
    Lodnon
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: I think I need a nested If function and maybe an "ISBLANK" function

    Hi etaf!

    Thanks for your response! That worked perfectly! Have a great day!

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,797

    Thumbs up Re: I think I need a nested If function and maybe an "ISBLANK" function

    your welcome
    I believe you can mark the thread solved

    to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.
    Last edited by etaf; 03-06-2013 at 08:33 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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