+ Reply to Thread
Results 1 to 4 of 4

Find rows that have at least one value across multiple columns

  1. #1
    Registered User
    Join Date
    02-08-2013
    Location
    Leicestershire, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Find rows that have at least one value across multiple columns

    Hi

    This is my first post :-)

    Apologies if this has been answered before. I have looked through some of the posts in the forum but am not sure if the responses will do what I need.

    I have a spreadsheet with five columns (cols A to E). The cells across all columns may or may not have a value. I would like to find the rows where any cell in columns A to B have a value in them. I would like to use Column F to have some text in there to flag that the row has got at least one value.

    Please could someone advise me how this can be done using formulas.

    Kind Regards
    Sandy

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Find rows that have at least one value across multiple columns

    hi Sandy, welcome to the forum. to check row by row would be:
    =COUNTA(A1:B1)

    to check column would be:
    =COUNT(A:B)

    to put some text, use the IF formula with it. like maybe:
    =IF(COUNTA(A1:B1),"Text Found","")

    or:
    =IF(COUNT(A:B),"Text Found","")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: Find rows that have at least one value across multiple columns

    Hi,
    if you place this formula in F1, and then copy down the column

    Please Login or Register  to view this content.
    Regards
    Sean

    Please add to my reputation if you think i helped
    (click on the star below the post)
    Mark threads as "Solved" if you have your answer
    (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code:
    [code] Your code here [code]
    Please supply a workbook containing example Data:
    It makes its easier to answer your problem & saves time!

  4. #4
    Registered User
    Join Date
    02-08-2013
    Location
    Leicestershire, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Find rows that have at least one value across multiple columns

    Awesome, thanks guys. That's solved it :-)

+ 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