+ Reply to Thread
Results 1 to 5 of 5

Not sure if I should use multiple vlookup, index or IF functions

  1. #1
    Registered User
    Join Date
    10-20-2013
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2013
    Posts
    3

    Question Not sure if I should use multiple vlookup, index or IF functions

    Sample of data show below. For each BCN on the date of sale I need to return the Sale Price on that date. For example, if the BCH typed in is 2026002 and the date of sale is 3/5/2003 I would need to return .104 as the price per unit; If the BCN was 2034602 and sale occurred in 7/2007 I would need to return a sale price of .1000. How can I do this?

    BCN supplier Sale $ Full $ Effective Date
    2026002 GENERIC 500000 0.0959 0.0959 9/2/2004
    2026002 GENERIC 500000 0.0959 0.0959 9/1/2004
    2026002 GENERIC 500000 0.104 0.104 12/1/2002
    2026002 GENERIC 500000 0.1098 0.1098 12/1/2000
    2026002 GENERIC 500000 0.0578 0.1098 8/1/1996
    2026002 GENERIC 500000 0.1098 0.1098 2/1/1995
    2026002 GENERIC 500000 0.0464 0.1098 1/1/1995
    2026002 GENERIC 500000 0.033 0.1098 8/1/1994
    2026002 GENERIC 500000 0.0246 0.1098 3/1/1994
    2034602 VICTORY 0.1287 0.3762 9/27/2009
    2034602 VICTORY 0.1087 0.3062 9/26/2009
    2034602 VICTORY 0.1000 0.3000 7/21/2005

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Not sure if I should use multiple vlookup, index or IF functions

    Assuming that each combination of BCN and date occurs only once for a supplier, you could try the SUMIFS function with the sale price column as the sum column and the BCN number and data columns as criteria with the supplier column to make sure that one one row is returned.
    Martin

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Not sure if I should use multiple vlookup, index or IF functions

    It's also easier for us to work on a sample XL sheet than on data that has to be copy/Pasted, etc..

  4. #4
    Registered User
    Join Date
    10-20-2013
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Not sure if I should use multiple vlookup, index or IF functions

    Each bcn and date combination does only occur once but for example 2026002 had a sale price of .0246 effective from 3/1/1994 until the next change occurs which means that price goes only until 7/31/1994 so it would only occur at that price if the date is greater than 3/1/1994 but less than 8/1/1994 and I'm not sure how to account for that

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

    Re: Not sure if I should use multiple vlookup, index or IF functions

    How we can help with such copy/paste data with no XLS file? try to provide us the most convernience to give help to you, nickiv.
    Quang PT

+ 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. Index/Match functions across multiple worksheets
    By dtingey in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-25-2012, 03:50 PM
  2. Excel 2007 : Using multiple Index-Match functions
    By sigyn in forum Excel General
    Replies: 5
    Last Post: 10-13-2011, 10:55 AM
  3. Replies: 1
    Last Post: 04-01-2011, 12:57 PM
  4. Multiple INDEX's and MATCH Functions
    By martinpe in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-13-2008, 12:35 AM
  5. Multiple INDEX Functions
    By scwilly in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-10-2005, 09:53 PM

Tags for this Thread

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