+ Reply to Thread
Results 1 to 4 of 4

Return data if blank cell is found

  1. #1
    Registered User
    Join Date
    10-06-2012
    Location
    Dartmouth
    MS-Off Ver
    Excel 2010
    Posts
    9

    Question Return data if blank cell is found

    I have a spreadsheet with several columns of data. I have a formula that returns a cell from column "a" if column "d" contains a "Y". It returns the next cell in the column where that criteria is found. I want to modify the formula so that it does the same thing if the cell in column d is blank.

    This is the formula I use to get the data from column a =IF(ROWS(P$3:P3)<=$P$2,INDEX(A$2:A$133,SMALL(IF($D$2:$D$133=$O$2,ROW($D$2:$D$133)-ROW($A$2)+1),ROWS(P$3:P3))),""). I have tried to modify the formula so that the small looks at a 02 and returns the data if it is a blank. I have tried to insert a match formula that returns the row reference for a blank cell. I am stuck!

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Return data if blank cell is found

    This is just a guess, but if you used the Evaluate formula tool on that, I am thinking $O$2 is evaluating to '0' not "", so it is actually trying to match cells with a zero in them..
    If you replace the $D$2:$D$133=$O$2 with $D$2:$D$133="", does it work ?

    Edit-
    If it does, then a way to force O2 to ="" is just that, In O2: =""

    Hope this helps
    Last edited by dredwolf; 03-09-2013 at 01:42 PM.
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    Registered User
    Join Date
    10-06-2012
    Location
    Dartmouth
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Return data if blank cell is found

    Thanks, it worked.

  4. #4
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Return data if blank cell is found

    You are welcome

    Please remember to mark the thread as solved if you are satisfied with your solution :
    To mark thread "Solved", go to the top of the thread,click "Thread Tools",click "Mark as Solved"

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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