+ Reply to Thread
Results 1 to 7 of 7

IF statement with blank cells

  1. #1
    Registered User
    Join Date
    08-16-2012
    Location
    Boston, Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    17

    IF statement with blank cells

    I feel like I'm generally pretty good with formulas but I'm a bit stumped here. Thinking I need to use an IF statement, but can't fully make it work.

    What I'm looking to do is have the formula in column AD. If there is a value in AC I would like that to return. If there is not a value in AC I would like AA to return. If there is not a value in AA I would like Y to return and if there is nothing in Y I would like to default to the values in column W. I'm sure I'm missing something simple, but can't figure it out...

    TIAexcel.JPG

  2. #2
    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: IF statement with blank cells

    I can't see your row identifiers, so assume your data starts on row 12 and adjust accordingly. Try this in AD12:

    =IF(AC12<>"",AC12,IF(AA12<>"",AA12,IF(Y12<>"",Y12,W12)))

    Copy down as required.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor maxpit's Avatar
    Join Date
    07-24-2023
    Location
    Como, Italy
    MS-Off Ver
    MSO 365 - Ver 2208
    Posts
    185

    Re: IF statement with blank cells

    Hi JRay0108,

    Try this in AD5 and then drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and let me know.

    Bye
    Max
    let's compare ideas

  4. #4
    Registered User
    Join Date
    08-16-2012
    Location
    Boston, Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: IF statement with blank cells

    Thank you Pate and Max!
    Last edited by JRay0108; 01-03-2025 at 06:09 PM.

  5. #5
    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: IF statement with blank cells

    Glad to help, and thanks for marking the thread as Solved.

    You might also like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

  6. #6
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: IF statement with blank cells

    Seemed like what you are looking for is the value of the last non-blank cell: =LOOKUP(2,1/(W5:AC5<>""),W5:AC5), assuming column X does not contain a number.

  7. #7
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: IF statement with blank cells

    Alternatively, =IFERROR(LOOKUP(2,1/(Y5:AC5<>""),Y5:AC5),W5)

+ 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] IF statement using multiple cells. Result should consider whether cells are blank
    By harrysolomon in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-13-2019, 12:40 PM
  2. [SOLVED] Nested If statement, checking multiple cells for Blank cells
    By JLeague in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-30-2015, 11:18 AM
  3. [SOLVED] IF Statement syntax when cells are blank
    By moosetales in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-27-2014, 10:57 PM
  4. IF Statement to leave cell blank if multiple cells are all blank
    By sweeteri in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-14-2014, 12:02 PM
  5. [SOLVED] If two cells are blank, if statement to show third statement is blank
    By juliewoo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-20-2013, 12:28 PM
  6. Ignoring Blank Cells in IF statement
    By dbanbury in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-12-2009, 12:08 PM
  7. Replies: 3
    Last Post: 11-22-2007, 07:53 AM

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