+ Reply to Thread
Results 1 to 16 of 16

Remove values with data missing

  1. #1
    Forum Contributor
    Join Date
    09-21-2015
    Location
    Alexandria
    MS-Off Ver
    2013
    Posts
    106

    Remove values with data missing

    Hallo, i want to extract the columns E and O from the sheet 'work' only for the cells that the corresponding Y column cell is blank.

    (The formula that i have in sheet1, puts the correct cells one after another.)

    To remove the cells that are blank in Y column AND are blank also in E column, i was thinking to replace the small function with this: SMALL(IF(AND(WORK!$Y$13:$Y$45="";WORK!$E$13:$E$45<>"")))

    This doesn't seem to work.

    Any help?
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 10-23-2019 at 06:34 AM.

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,999

    Re: formula not working

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: index formula with complex small function

    adjusting your formula perhaps
    =IFERROR(INDEX(WORK!$E$13:$E$45,SMALL(IF(WORK!$Y$13:$Y$45="",IF(WORK!$E$13:$E$45<>"",ROW(WORK!$E$13:$E$45)-ROW(WORK!$E$13)+1)),ROWS(WORK!$E$13:$E13))),"") as an array
    Last edited by davsth; 10-23-2019 at 06:33 AM.

  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 2406
    Posts
    44,662

    Re: index formula with complex small function

    How can you bear to look at that colour scheme! It makes my head hurt....

    =IFERROR(INDEX(WORK!E:E,AGGREGATE(15,6,ROW(WORK!$E$13:$E$43)/(WORK!$Y$15:$Y$43=""),ROWS(C$4:C4))),"")

    and

    =IFERROR(INDEX(WORK!O:O,AGGREGATE(15,6,ROW(WORK!$E$13:$E$43)/(WORK!$Y$15:$Y$43=""),ROWS(C$4:C4))),"")

    entered normally. However there are still a few blank values as Column Y=blank is not sufficient, on its own, to remove the non-values in the area between rows 22-25
    Attached Files Attached Files
    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

  5. #5
    Forum Contributor
    Join Date
    09-21-2015
    Location
    Alexandria
    MS-Off Ver
    2013
    Posts
    106

    Re: index formula with complex small function

    Guys i really can't think of a better title, cause my problem is very delicate and detailed.

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

    Re: index formula with complex small function

    =IFERROR(INDEX(WORK!E:E,AGGREGATE(15,6,ROW(WORK!$E$13:$E$43)/((WORK!$Y$15:$Y$43="")*(WORK!$E$13:$E$43<>"")),ROWS(C$4:C4))),"")

    and

    =IFERROR(INDEX(WORK!O:O,AGGREGATE(15,6,ROW(WORK!$E$13:$E$43)/((WORK!$Y$15:$Y$43="")*(WORK!$E$13:$E$43<>"")),ROWS(D$4:D4))),"")

    in C4 and d4, respectively.

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

    Re: Remove values with data missing

    I have changed the title for you, on this occasion.

  8. #8
    Forum Contributor
    Join Date
    09-21-2015
    Location
    Alexandria
    MS-Off Ver
    2013
    Posts
    106

    Re: Remove values with data missing

    I changed the title, hope it is ok.

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

    Re: Remove values with data missing

    See post 6 and forget about the title. It's not THAT important...

  10. #10
    Forum Contributor
    Join Date
    09-21-2015
    Location
    Alexandria
    MS-Off Ver
    2013
    Posts
    106

    Re: Remove values with data missing

    Thank you very much!
    Is there a way to include in the formula this situation:
    if the E column cell contains data, and the O column cell is blank, not to transfer it in sheet1?
    Last edited by freeriding; 10-23-2019 at 07:53 AM.

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

    Re: Remove values with data missing

    Confused again.... Isn't that what the formulae at post 6 are doing????

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

    Re: Remove values with data missing

    Sorry. Confusion is in my head. Too many double negatives...

    If E is blank and O is non-blank and Y is???? copy it over. Or what????

    Tell me the criteria FOR copying it over.

  13. #13
    Forum Contributor
    Join Date
    09-21-2015
    Location
    Alexandria
    MS-Off Ver
    2013
    Posts
    106

    Re: Remove values with data missing

    See cell D8 in sheet1.
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    09-21-2015
    Location
    Alexandria
    MS-Off Ver
    2013
    Posts
    106

    Re: Remove values with data missing

    If E isn't blank, Y is blank and O is blank, then don't transfer in sheet1.

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

    Re: Remove values with data missing

    That does NOT make sense. the formula in your sheet in D is copying over non-blanks in E. But you say if e is non blank don't copy.

    PLEASE check and tell me what you DO want copied over. do not tell me what you DO NOT want copied over. Otherwisde we are going to get VERY confused. You have done that to me already.

  16. #16
    Forum Contributor
    Join Date
    09-21-2015
    Location
    Alexandria
    MS-Off Ver
    2013
    Posts
    106

    Re: Remove values with data missing

    Thank you, all good, i solved it.
    =IFERROR(INDEX(WORK!E:E;AGGREGATE(15;6;ROW(WORK!$E$13:$E$43)/((WORK!$Y$13:$Y$43="")*(WORK!$E$13:$E$43<>"")*(WORK!$O$13:$O$43<>""));ROWS(C$4:C4)));"")

+ 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. Format a part of a text working with only value not working with formula result
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-10-2017, 05:41 AM
  2. [SOLVED] help index and match macro not working but formula working??
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-28-2016, 06:37 AM
  3. Replies: 3
    Last Post: 05-14-2015, 07:32 AM
  4. Correct/Working (Index,Match) formula not working between cells
    By barnerd in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 02-11-2014, 01:20 PM
  5. Replies: 9
    Last Post: 03-08-2013, 11:50 AM
  6. Replies: 2
    Last Post: 08-17-2012, 08:16 AM
  7. Replies: 2
    Last Post: 08-01-2012, 11:53 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