+ Reply to Thread
Results 1 to 4 of 4

Formula to find a specific text within a range and return the value in the next cell

  1. #1
    Registered User
    Join Date
    08-13-2013
    Location
    Atlanta, Georgia
    MS-Off Ver
    Excel 2013
    Posts
    58

    Formula to find a specific text within a range and return the value in the next cell

    I have a huge amount of data and I'm only looking for specific values that correspond with a title.

    So in the attachment below you will see two titles listed. "Pricing Special" and "Rounding Overage"

    Excel 1.PNG

    I want a formula that I can put in the next column (E) that will only pull the value amount to the right of any cell that says "Pricing Special". The issue is that sometimes "Pricing Special" is in one column and sometimes its in another.

    Once I have those values in column E I can quickly Sum them to find the total for the Pricing Special vs. having to go through and sort/delete columns/rows every time.

    Thanks for your help!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Formula to find a specific text within a range and return the value in the next cell

    Put this in E2:

    =IF(A2="Pricing Special",B2,IF(C2="Pricing Special",D2,""))

    then copy down.

    Hope this helps.

    Pete

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Formula to find a specific text within a range and return the value in the next cell

    Take your pick

    =SUMPRODUCT(--($A$1:$C$16="Pricing Special"),$B$1:$D$16)
    or
    =SUMIFS($B$1:$D$16,$A$1:$C$16,"Pricing Special")

    this will simply give you total of all 'Pricing Special' without inputting invidually in Column E
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Registered User
    Join Date
    08-13-2013
    Location
    Atlanta, Georgia
    MS-Off Ver
    Excel 2013
    Posts
    58

    Re: Formula to find a specific text within a range and return the value in the next cell

    Awesome. Thanks guys! This really helps out a lot!

+ 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: 2
    Last Post: 08-05-2013, 07:32 PM
  2. [SOLVED] Find specific cell and return column number from a dynamic range
    By nivoe in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-18-2012, 12:39 PM
  3. Replies: 7
    Last Post: 09-18-2012, 04:17 PM
  4. Replies: 3
    Last Post: 06-20-2012, 07:16 AM
  5. Find specific text in column and return cell value from its immediate right
    By cneff in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-08-2012, 07:59 AM

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