+ Reply to Thread
Results 1 to 6 of 6

If multiple query

  1. #1
    Forum Contributor
    Join Date
    10-13-2011
    Location
    Australia
    MS-Off Ver
    Office 16
    Posts
    329

    If multiple query

    Hi and thanks for looking at this for me.
    I'm looking for a formula (assume an if function) where the outcome is required in Column A.
    If cell to the right is blank, then it will check the next, and so on - finishing at column G.

    Should All cells to the right be blank - it would be nice to have "Not Checked" as a result.
    Some cells have text, but some have dates - I'm unsure of how to ensure the date is replicated also.

    File is attached, thanks again for any assistance. I think it's relatively simple formula but I'm stumped.
    Regards
    Chris
    Attached Files Attached Files
    Last edited by Christopherdj; 09-15-2022 at 09:28 PM.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: If multiple query

    try this... =IF(B2<>"",B2,IF(C2<>"",C2,IF(D2<>"",D2,IF(E2<>"",E2,IF(F2<>"",F2,IF(G2<>"",G2,"Not Checked"))))))
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: If multiple query

    Hi Chris,

    This is a start to an answer using TextJoin. See the attached.
    FirstNonEmptyCell.xlsx

    I'm not sure how to test for text vs values but the above is a start.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Contributor
    Join Date
    10-13-2011
    Location
    Australia
    MS-Off Ver
    Office 16
    Posts
    329

    Re: If multiple query

    Thanks Marvin, yes it works but not for the date. Thanks for attempting it.
    Sam's answer above works, I only have to format the cells to date format.

  5. #5
    Forum Contributor
    Join Date
    10-13-2011
    Location
    Australia
    MS-Off Ver
    Office 16
    Posts
    329

    Re: If multiple query

    Thanks Sam, works fine with a quick format of cells. I had tried but was using >"" instead of the <>"".

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: If multiple query

    You're welcome, glad I could help.

+ 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] Help with Power Query to split multiple values in a cell split by comma to multiple rows
    By chandramouliarun in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-05-2021, 05:50 AM
  2. Excel Power Query Refresh or Access Query - 2nd Query Run is faster
    By Steveapa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2020, 10:16 AM
  3. Replies: 0
    Last Post: 05-18-2017, 06:58 PM
  4. Replies: 1
    Last Post: 11-14-2015, 07:34 PM
  5. Multiple search multiple results query
    By E8515 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-15-2013, 11:03 AM
  6. [SOLVED] Multiple lookup query, AND/IF multiple sheets
    By Christopherdj in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-29-2012, 09:01 PM
  7. Web Query - Change a word in query to form a new query
    By scottymelloty in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-25-2011, 04:13 AM

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