+ Reply to Thread
Results 1 to 3 of 3

formula to look for cells with values and output result to different column

  1. #1
    Forum Contributor Red fuji's Avatar
    Join Date
    03-21-2012
    Location
    The earthquake state, USA
    MS-Off Ver
    2016 Office
    Posts
    140

    formula to look for cells with values and output result to different column

    I need help with a formula that would look for cells in column 'A' that contain a value. Then it would read the corresponding status in column 'B' and copy the value in that cell to a different sheet. If the cell contains a value but the corresponding status cell is blank then the result would be "NA". Cells containing no values can be ignored.

    Thanks for your time and effort.
    Attached Files Attached Files

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: formula to look for cells with values and output result to different column

    I think this is what you want.

    Please Login or Register  to view this content.
    A2 in the status tab checks if A2 in sheet1 is blank:
    TRUE: Check if B2 in sheet1 is blank:
    >>TRUE: Pass whatever is in B2 of sheet1
    >>FALSE: Pass text "NA"
    FALSE: Make A2 in the status tab blank

  3. #3
    Forum Contributor Red fuji's Avatar
    Join Date
    03-21-2012
    Location
    The earthquake state, USA
    MS-Off Ver
    2016 Office
    Posts
    140

    Re: formula to look for cells with values and output result to different column

    ben_hensel.
    Thanks for the formula.
    but I failed to mention that I dont want to transfer over the empty rows; the copied result would not have empty rows in between them.
    how do i revised the formula to do that?
    i updated the attached file.

    = IF(sheet1!A2 <> "",IF(sheet1!B2 <> "", B2, "NA"),"")

    Thanks.
    Attached Files Attached Files

+ 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