+ Reply to Thread
Results 1 to 6 of 6

To Skip Empty Cells & blank Spaces and Capture Values

  1. #1
    Forum Contributor
    Join Date
    02-27-2015
    Location
    United Arab Emirates
    MS-Off Ver
    2013
    Posts
    162

    Lightbulb To Skip Empty Cells & blank Spaces and Capture Values

    Hi Excel Users,

    Please help in getting the values from a particular column as the column has blank cells and cells with blank spaces which makes difficult to lookup the correct value. Sample file attached for reference.
    Attached Files Attached Files
    Regards,

    Fareed

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: To Skip Empty Cells & blank Spaces and Capture Values

    Some of the values in column C are stored as TEXT that look like a number, others as real numbers.

    Select column C. Data/Text to columns/Finish. In J5:

    =IFERROR(INDEX($C$3:$C$4070,MATCH(1,INDEX((($A$3:$A$4070=$H5)*($C$3:$C$4070<>" ")*($B$3:$B$4705="MS")),0),0)),"")

    NOTE there are spaces in the empty cells. See red bit of formula. If you are doing much more with the data, you'd be better off deleting them. So, instead of text to columns you could use:

    =IFERROR(TRIM(C3)+0,"") in D2 copied down. then select column D copy/paste VALUES and then delete column C. At that point:

    =IFERROR(INDEX($C$3:$C$4070,MATCH(1,INDEX((($A$3:$A$4070=$H5)*($C$3:$C$4070<>"")*($B$3:$B$4705="MS")),0),0)),"")

    will work. In the attached file, I did NOT remove the spaces and used the first listed formula.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Contributor
    Join Date
    02-27-2015
    Location
    United Arab Emirates
    MS-Off Ver
    2013
    Posts
    162

    Re: To Skip Empty Cells & blank Spaces and Capture Values

    Thanks Glenn. This is very much clear. Instead of adding an additional column and then turning to values. Is there any possibility to use the trim function along with the Index Match function to get the desired result.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: To Skip Empty Cells & blank Spaces and Capture Values

    No reason why not... but the BEST option is to kill them right from the start, as described in the 2nd half of my post. If you REALLY want to keep them (I advise AGAINST keeping them) see the file.
    Attached Files Attached Files

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: To Skip Empty Cells & blank Spaces and Capture Values

    Maybe try

    =FILTER($A$3:C$4070,LEN(TRIM(C3:C4070)))
    Attached Files Attached Files
    Last edited by Bo_Ry; 12-24-2020 at 11:38 AM.

  6. #6
    Forum Contributor
    Join Date
    02-27-2015
    Location
    United Arab Emirates
    MS-Off Ver
    2013
    Posts
    162

    Re: To Skip Empty Cells & blank Spaces and Capture Values

    Thanks for the dynamic array formula.

+ 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] To skip empty cells & show blank cells if #DIV/0! error
    By mikehk in forum Excel General
    Replies: 3
    Last Post: 07-22-2020, 03:23 AM
  2. [SOLVED] Is it prossible to skip the empty blank cell when we use &
    By jackson_hollon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-07-2018, 10:30 PM
  3. [SOLVED] Using INDEX MATCH formula to return values that will skip blank cells
    By mark_luke in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-12-2017, 06:11 PM
  4. Replies: 2
    Last Post: 05-21-2014, 02:11 PM
  5. Replies: 4
    Last Post: 03-08-2014, 02:03 PM
  6. [SOLVED] Skip blank spaces in data validation list
    By skip2mylew in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-04-2013, 09:20 PM
  7. [SOLVED] Skip/Do not run Macro on the cell if empty/blank
    By Talazem in forum Excel General
    Replies: 3
    Last Post: 11-01-2012, 06:25 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