+ Reply to Thread
Results 1 to 5 of 5

How do I return the first non-blank cell in a row looking in non-contiguous columns?

  1. #1
    Registered User
    Join Date
    11-22-2019
    Location
    Kentucky, US
    MS-Off Ver
    365
    Posts
    3

    How do I return the first non-blank cell in a row looking in non-contiguous columns?

    First time poster here so go easy on me. I've searched for several hours now and tried various things but I can't seem to come up with something that will work. I'm sure the answer is relatively simple, but I just haven't had that "ah, ha" moment yet.

    I'm trying to look in a row within a range and return the first non-blank value while only looking in certain columns. For instance:

    2019-11-22 10_22_36-Book3.xlsx - Excel.png

    For each row labeled ID, in column B I want to find the first non-blank value in the range that would consist of columns H, K, and N. And same for columns C and D looking in each of their respective ranges from the RH columns. I will also be adding in new sets of releases (i.e. "Release 4", "Release 5", etc) which may or may not have a value for each of the 3 rev's so, as I insert columns to the left of F, I need the lookup range to expand as the values get pushed to the right. I think I could do this with VBA, but I really need to do it with a formula as I'm trying to keep my sheet clean of macros.

    Any help is greatly appreciated as I am stuck
    Attached Files Attached Files
    Last edited by Poolbert; 11-22-2019 at 12:26 PM.

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: How do I return the first non-blank cell in a row looking in non-contiguous columns?

    You might try:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: How do I return the first non-blank cell in a row looking in non-contiguous columns?

    Try in Cell B3

    =INDEX($F3:$N3,MATCH(1,INDEX(($F$2:$N$2=B$1)*($F3:$N3<>""),0),0))

    Copy down and across
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Registered User
    Join Date
    11-22-2019
    Location
    Kentucky, US
    MS-Off Ver
    365
    Posts
    3

    Re: How do I return the first non-blank cell in a row looking in non-contiguous columns?

    This worked wonderfully! Thanks!

  5. #5
    Registered User
    Join Date
    11-22-2019
    Location
    Kentucky, US
    MS-Off Ver
    365
    Posts
    3

    Re: How do I return the first non-blank cell in a row looking in non-contiguous columns?

    Quote Originally Posted by XLent View Post
    You might try:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Sorry, meant to link it to the post to show which one worked. This is brilliant. Now I'll just have to dissect it to see how it works. Thanks!

+ 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. Replies: 2
    Last Post: 08-13-2018, 02:30 AM
  2. [SOLVED] If two cells are blank then return blank, else vlookup cell with populated data
    By Jason G in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-06-2017, 10:20 AM
  3. Return first non blank cell (cells have formulas that return blank)
    By BG1983 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-05-2016, 04:06 PM
  4. Copy contiguous columns and paste as non-contiguous
    By absconditus in forum Excel General
    Replies: 1
    Last Post: 12-29-2014, 03:17 AM
  5. [SOLVED] How to sum non-contiguous columns applied as a formula on contiguous cells
    By figo12 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-09-2013, 01:07 PM
  6. [SOLVED] Cell referenced in formula has no information displayed (shows blank), return blank cell
    By nunayobinezz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-07-2013, 04:51 PM
  7. [SOLVED] Copying non-contiguous columns to contiguous columns
    By Bob in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-09-2006, 10:54 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