+ Reply to Thread
Results 1 to 4 of 4

Search column, return values in adjacent column?

Hybrid View

  1. #1
    Registered User
    Join Date
    08-27-2008
    Location
    Space
    Posts
    14

    Search column, return values in adjacent column?

    Is there a formula to search an entire column, say Column C for the value 'x' (literally the letter x) and return the value in the B column of the same row?

    Search for the letter x in column c, when you find the x, return the corresponding column B value. If multiple X's are found, the values in B are added.

    Any help would be appreciated.

    (the letter X could also be replaced with a number like 1, 2, 3, 4....10 etc.)

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Search column, return values in adjacent column?

    Quote Originally Posted by HELPME13
    If multiple X's are found, the values in B are added.
    It's not clear if values in B are numeric or not - ie whether you mean to aggregate or if text strings - concatenate.

    Assuming numbers - see SUMIF

    =SUMIF(C:C,A1,B:B)

    where A1 holds criteria be it "X" or a number.

    If B holds text values (to be concatenated) then things are much messier - the approach you adopt will largely depend on volume of data etc...

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,086

    Re: Search column, return values in adjacent column?

    Look at SUMIF

    =SUMIF(C:C,"x",B:B)

    Regards

  4. #4
    Registered User
    Join Date
    08-27-2008
    Location
    Space
    Posts
    14

    Re: Search column, return values in adjacent column?

    Awesome! Thanks!

+ 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