+ Reply to Thread
Results 1 to 4 of 4

Many Condition need to match and return a unit price - Urgent assignment

  1. #1
    Registered User
    Join Date
    06-16-2008
    Posts
    30

    Many Condition need to match and return a unit price - Urgent assignment

    Hi All,

    I had two spreadsheet here

    Sheet 1
    A B C D E F
    Date Supplier Name PO No. Description of Goods Invoice No. Quantity
    2011.1.23


    Sheet 2
    A B C D E F G
    Date Supplier Name PO No. Description of Goods Invoice No. Quantity Unit Price

    2011.1.28

    Sheet 2 are just have one more column = unit price.

    I need to find the unit price from sheet 2 and they are few thousand of transaction in a year in sheet 2. And sheet 2 are a lot of repeated purchases of same commodity but different unit price, different quantity, or PO number in a year.
    Therefore i need to do a lookup or match formulae.

    First condition= For eg. If sheet 1 date is on 2011.1.13, but sheet 2 transaction enter date is on 2011.1.28 (which based on delivery date). The price that i look from sheet 2 must be within the month of January 2011. The transaction date in sheet 2 is not allowed to enter into system after January but can be anyday in January.

    Second = if above first condition match, then both sheet 1 & 2 Supplier name, PO number, description and invoice no, quanity need to match.

    Then the sheet 1 unit price can come

    THanks all..

    Really appreciate!!!!

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Many Condition need to match and return a unit price - Urgent assignment

    Hi,

    in this example you get the first price in column G of sheet2 (g2:g1000) when 3 conditions are met

    (a2-b2-b2 sheet1)

    =MONTH(A2)=MONTH(Sheet2!A2:A1000)

    =B2=Sheet2!B2:B1000

    =C2=Sheet2!C2:C1000


    =INDEX(Sheet2!G2:G1000,MATCH(MONTH(A2)&B2&C2,INDEX(MONTH(Sheet2!A2:A1000)&Sheet2!B2:B1000&Sheet2!C2:C1000,0),0))


    You can simply add any other corrispondence you need.

    Better if you can attach a sample file in order to adjust the formula.

    Hope it helps

  3. #3
    Registered User
    Join Date
    06-16-2008
    Posts
    30

    Re: Many Condition need to match and return a unit price - Urgent assignment

    What does it means a2-b2-b2 sheet 1?

    =month(a2).. really cannot understand. Perhaps you are right . i should attached it.

    Thank you...
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Many Condition need to match and return a unit price - Urgent assignment

    Hi, attached a little example.

    In order to match dates, it's better if you do not use merged cells: the information (the date), must be repeated in every row.

    This is a little step forward.

    Quantities are not easily matchable: example, in a sheet there are 843 in one row, in the second two rows 400+443. I tried with a sumproduct (see the formula).

    The product descriptions are often different.

    So any formula can help you job but cannot totally resolve your queries.

    Regards
    Attached Files Attached Files
    Last edited by canapone; 12-13-2011 at 02:52 AM. Reason: GRAMMAR

+ 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