+ Reply to Thread
Results 1 to 4 of 4

If column cell contains text return that text OR if blank return text from cell above

  1. #1
    Registered User
    Join Date
    02-26-2016
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    42

    If column cell contains text return that text OR if blank return text from cell above

    Don't know where to start with this one.
    I have a work around but know there is a much better way to approach this.
    I get a weekly report and I basically search for the 3 letter N7, N22, N44 etc.. there is 28k rows of data.

    Basically I filter column N and remove the blanks. In R7 I code =N7 with returns ACD
    Then I flash fill down.

    Then I add in R8
    =IF(N8="", R7,) So it's looking to see if N8 is blank if it is its It looks a row up and returns that value.
    Flash fill Column R.

    Anyway its crap code...

    I know there is a better way to do what I want.

    I just don't know if I am explaining it well enough
    My uploaded file shows the old report and the Work is the way I would like it to look so I can filter Column R and look at a only ACD or ACE or AQD.

    Hope you understand what I'm trying to accomplish?

    TIA!!!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,829

    Re: If column cell contains text return that text OR if blank return text from cell above

    I'm not sure I understand what the actual problem is. If you put this formula in R7 and copy it down, I think it's what you want, but I think that's what you're doing already.
    =IF(N7="",R6,N7)

    Sorry, I need more clarification on what the issue is I think.

  3. #3
    Registered User
    Join Date
    02-26-2016
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    42

    Re: If column cell contains text return that text OR if blank return text from cell above

    Gregb11, actually that's exactly what I was missing. I only had half the reference. =IF(N7="",R6) I missed referencing N7 again. so you code completed what I was missing. It was hard to explain exactly what I wanted to have happen but all worked.
    Thanks for taking the time to resolve.

  4. #4
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,829

    Re: If column cell contains text return that text OR if blank return text from cell above

    Great - glad I was able to 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. Replies: 6
    Last Post: 06-13-2019, 09:07 PM
  2. [SOLVED] 2 cell text lookup in text string to return data from separate column
    By Zivhodiva in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-08-2019, 03:03 PM
  3. [SOLVED] How to match a cell with text with a range of text and return own text
    By ec4excel in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-16-2014, 11:07 AM
  4. Replies: 5
    Last Post: 01-06-2014, 05:33 AM
  5. Search cell for multiple text , return comma separated text in separate cell if found
    By dangerdoug in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-01-2013, 01:52 PM
  6. If cell contains text1, text2 or text 3 return this text, otherwise return X
    By bukmanodrama in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-26-2013, 09:24 AM
  7. Replies: 5
    Last Post: 02-18-2007, 06:30 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