+ Reply to Thread
Results 1 to 6 of 6

If formula returns # from A1 then looks at B1 then C1 until finds not #

  1. #1
    Forum Contributor
    Join Date
    03-08-2019
    Location
    England
    MS-Off Ver
    2016
    Posts
    104

    If formula returns # from A1 then looks at B1 then C1 until finds not #

    Hello,

    In Col D1 down - I have this formula =(A1)


    In Col A I have


    #
    10
    20
    #
    #
    30

    In Col B I have

    #
    #
    #
    10
    #
    30

    In Col C I have

    1
    #
    #
    10
    50
    #

    And basically I need a formula that looks at A1 and if it returns x then looks at B1 and if still returns x then looks at C1 but if it returns a value in A1 then the formula ignores whatever is in B1 / C1.

    Col D would look like this

    1
    10
    20
    10
    50
    30

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,483

    Re: If formula returns # from A1 then looks at B1 then C1 until finds not #

    How about this?

    =IF(A1<>"",A1,IF(B1<>"",B1,C1))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    03-08-2019
    Location
    England
    MS-Off Ver
    2016
    Posts
    104

    Re: If formula returns # from A1 then looks at B1 then C1 until finds not #

    Hello, that works! although my results do actually return # not a blank so amended it slightly to the below.

    =IF(D4<>"#",D4,IF(E4<>"#",E4,F4))

    Thank you though!

  4. #4
    Forum Contributor
    Join Date
    03-08-2019
    Location
    England
    MS-Off Ver
    2016
    Posts
    104

    Re: If formula returns # from A1 then looks at B1 then C1 until finds not #

    I tried to add reputation but I guess you answered me last time and I need to spread some around before I can but again big thanks

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,483

    Re: If formula returns # from A1 then looks at B1 then C1 until finds not #

    I interpreted # as a blank cell!

    No worries. Simple stuff.

  6. #6
    Forum Contributor
    Join Date
    03-08-2019
    Location
    England
    MS-Off Ver
    2016
    Posts
    104

    Re: If formula returns # from A1 then looks at B1 then C1 until finds not #

    Hi - was going to start a new thread but I think you can help with your expertise...

    When the below formula returns 000 I want it to return blank instead

    =TEXT(IF(C3<>"#",C3,IF(D3<>"#",D3,E3)),"000")


    Furthermore, if this formula returns _________________ then I want it to return blank instead also

    =LEFT(I17&REPT("_",5),5)&LEFT(J17&REPT("_",4),4)&K17&LEFT(L17&REPT("_",5),5)&LEFT(M17&REPT("_",3),3)

+ 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. Function that finds string in row in a worksheet and returns value in said column.
    By Allerdrengen in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-03-2017, 06:30 AM
  2. Need a macro loop that finds highest date (if any) and returns in different cells
    By Dyrlund in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-12-2016, 03:02 AM
  3. function that returns true if it finds a string in a targeted cell
    By riwiseuse in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-13-2013, 10:20 AM
  4. Replies: 1
    Last Post: 08-22-2013, 03:16 PM
  5. [SOLVED] need formula that finds phone #, if true, returns empty cell
    By jessexcel in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-23-2013, 11:44 PM
  6. Replies: 1
    Last Post: 02-01-2013, 06:30 PM
  7. [SOLVED] Vlookup finds a blank, but returns a zero - HELP!
    By flummoxed in forum Excel General
    Replies: 6
    Last Post: 01-18-2005, 12:06 PM

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