+ Reply to Thread
Results 1 to 3 of 3

Find a text string and an amount in a vlookup formula

  1. #1
    Registered User
    Join Date
    03-16-2013
    Location
    Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Find a text string and an amount in a vlookup formula

    Hi there

    I'm working on an export of our sales. Workbook contains 2 sheets:

    Sheet1
    It shows a list of all our booking IDs and the sales activity. For each booking ID in column E "Booking ID", there is always a "Sale created..." text string, and often 1 or several "Sale adjustments" with positive or negative numbers in a text string in Colum I "Comment". Then the value of the Sale created / Sale adjustment is found in column J "Operator amount"

    A booking ID often occurs more than once in the list if more sales adjustments are made.

    For each booking ID, I would like to return (sum of) the Operator Amount if:
    - Booking ID matches.
    - Text string contains either the exact string "Sale created" or "Sale adjustment created". For both these options, I have created 2 output columns in sheet2.

    Sheet2:
    The output could contain these columns:
    A: a list of unique booking IDs;
    B: column for "Sale created" and the starting value of the sale
    C: column for "Sale adjustments": the sum of all positive/negative adjustments)

    I figured I would do a vlookup for column B and C; lookup the Booking ID in sheet1, then search for the exact text match "Sale created" in sheet1 column I, and then return the Operator Amount.

    Please see attached a sample workbookg.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Find a text string and an amount in a vlookup formula

    How abouut in B2:

    Please Login or Register  to view this content.
    Drag down and accross
    Quang PT

  3. #3
    Registered User
    Join Date
    03-16-2013
    Location
    Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Find a text string and an amount in a vlookup formula

    Superb, many thanks

+ 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. [SOLVED] Use VLOOKUP to find string of text in a cell ??
    By rodneyoz in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-25-2018, 06:10 PM
  2. [SOLVED] match and vlookup find string in a text based on a wildcard
    By mils in forum Excel General
    Replies: 4
    Last Post: 10-27-2015, 05:24 AM
  3. Need help - Formula to Find and give the total amount of Text.
    By Poashap in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-25-2014, 01:09 PM
  4. Vlookup to find part of text string
    By boatbabe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-06-2013, 10:32 AM
  5. [SOLVED] Trying to find a formula to find a random $ amount in a text in a cell
    By Miki1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-28-2013, 10:13 PM
  6. VLOOKUP to find values in text string???
    By newbieexceldude in forum Excel General
    Replies: 6
    Last Post: 12-18-2012, 01:21 PM
  7. Replies: 2
    Last Post: 12-31-2011, 06:41 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