Need to identify if a product in the sales invoice is in the contracted list and produce the same result that is on that list i.e. TRUE or FALSE

McTam

Board Regular
Joined
Sep 15, 2006
Messages
91

Excel 2007
ABCDEFG
1ContractedProduct codeItem DescriptionContractedProduct codeProduct Description
2TRUEbwA4A4 BW Copy/ PrintFALSEcSCANA0A0 Colour Scan to File
3TRUEbwA3DSA3 DS BW Copy/ PrintFALSEcSCANA1A1 Colour Scan to File
4TRUEcA3DSA3 Double Sided Colour Copy/ PrintFALSEcSCANA2A2 Colour Scan to File
5FALSEcA3A3 Colour Copy/ PrintFALSEcSCANA3A3 Colour Scan to File
6TRUECBComb BindFALSEcSCANA4A4 Colour Scan to File
7FALSEcA3A3 Colour Copy/ PrintFALSEcSRA3SRA3 Colour Copy/ Print
8TRUECBComb BindFALSEDVDBDVD Burning
9FALSELAB15x1Labour Charge (15min x1)FALSEENCAPA0A0 Encapsulation
10TRUEpA4CARDA4 Heavyweight Paper/ CardFALSEENCAPA1A1 Encapsulation
11TRUEcA4A4 Colour Copy/ PrintFALSEENCAPA2A2 Encapsulation
12TRUEpA4CARDA4 Heavyweight Paper/ CardFALSEPERFPerfect Bind
13TRUEcA4A4 Colour Copy/ PrintFALSExFILE4D Ring File
14TRUEpA4CARDA4 Heavyweight Paper/ CardTRUEbwA3A3 BW Copy/ Print
15TRUEcA4A4 Colour Copy/ PrintTRUEbwA3DSA3 DS BW Copy/ Print
16TRUEpA4CARDA4 Heavyweight Paper/ CardTRUEbwA4A4 BW Copy/ Print
17TRUEcA4A4 Colour Copy/ PrintTRUEbwA4DSA4 BW Double Sided Copy/ Print
18TRUEcA3A3 Colour Copy/ PrintTRUEcA3A3 Colour Copy/ Print
19TRUECBComb BindTRUEcA3DSA3 Double Sided Colour Copy/ Print
20TRUEpA4CARDA4 Heavyweight Paper/ CardTRUEcA4A4 Colour Copy/ Print
21TRUEcA4DSA4 Double Sided Colour Copy/ PrintTRUEcA4DSA4 Double Sided Colour Copy/ Print
22FALSEcA3A3 Colour Copy/ PrintTRUEENCAPA3A3 Encapsulation
23TRUECBComb BindTRUEENCAPA4A4 Encapsulation
24FALSEcA3A3 Colour Copy/ PrintTRUEENCAPA5A5 Encapsulation
25TRUECBComb BindTRUEENCAPA6A6 Encapsulation
26FALSEbwA4DSA4 BW Double Sided Copy/ PrintTRUELAB15x1Labour Charge (15min x1)
27TRUExFILE4D Ring FileTRUELAB15x1.5Labour Charge (15min x1.5)
28TRUEcA3A3 Colour Copy/ PrintTRUELAB15x2Labour Charge (15min x2)
29TRUEcA4A4 Colour Copy/ PrintTRUEpA3100A3 100gsm Paper
30FALSEpA4CARDA4 Heavyweight Paper/ CardTRUEpA3CARDA3 Heavyweight Paper/ Card
31TRUEcA4A4 Colour Copy/ PrintTRUEpA3TEARA3 Tear Proof Paper
32TRUEcA3A3 Colour Copy/ PrintFALSEpA3TINTA3 Tinted Paper
33FALSECBComb Bind
34
35Sheet OneInvoice DetailSheet TwoProduct List
36
37
Both Sheets



I did post this before but didn't get any responses which I must admit is very unusual. Hope the html will work? As I mention above I generate an Invoice which has various items on. Some of these are in the agreed contract and some outside of it. From the list of products on the Product List I need to identify on the Invoice Detail sheet if they are TRUE or FALSE looking at the values in Product List sheet. I hope this makes sense. I have tried using VLOOKUP but I think it needs to look at too many variables?

thank you in advance Alex
 
Last edited:

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Hi thanks, that doesn't really work. I probably didn't explain myself properly, I need Column A Sheet 1 to show the corresponding value in Sheet Two. Sheet 1 is the Invoice and sheet 2 is the stock list with items in the contract and out of the contract (TRUE or FALSE). Column E,F,and G are actually A,B, and C in sheet 2. So it will look at the Product Description and whether that product is in contract or not (TRUE or FALSE) and return that in the cell in Column A Sheet 1.

Clear as mud I know but can't really explain it any other way??

thanks again Alex
 
Upvote 0
Hi thanks, that doesn't really work. I probably didn't explain myself properly, I need Column A Sheet 1 to show the corresponding value in Sheet Two. Sheet 1 is the Invoice and sheet 2 is the stock list with items in the contract and out of the contract (TRUE or FALSE). Column E,F,and G are actually A,B, and C in sheet 2. So it will look at the Product Description and whether that product is in contract or not (TRUE or FALSE) and return that in the cell in Column A Sheet 1.
So, adjusting Andrew's formula so that Column E references are changed to Column A references on Sheet2 (and so on for Column F and G), this formula results...

=INDEX(Sheet2!A$2:A$32,MATCH(1,INDEX((Sheet2!B$2:B$32=B2)*(Sheet2!C$2:C$32=C2),),FALSE))

Does it work for you?
 
Upvote 0
No sorry it doesn't I have made another copy of the sheet and hopefully this show better what I am looking for,


Excel 2007
ABCDEFG
1Column A Invoice DetailColumn L Invoice DetailColumn M Invoice DetailColumn A Product ListColumn B Product ListColumn C Product List
2ContractedProduct codeItem DescriptionContractedProduct codeProduct Description
3TRUEbwA4A4 BW Copy/ PrintFALSEbwA0A0 BW Copy/ Print
4TRUEbwA3DSA3 DS BW Copy/ PrintFALSEbwA1A1 BW Copy/ Print
5TRUEcA3DSA3 Double Sided Colour Copy/ PrintFALSEbwA2A2 BW Copy/ Print
6FALSEcA3A3 Colour Copy/ PrintFALSEbwSCANA0A0 Black & White Scan to File
7TRUECBComb BindFALSEbwSCANA1A1 Black & White Scan to File
8FALSEcA3A3 Colour Copy/ PrintFALSEbwSCANA2A2 Black & White Scan to File
9TRUECBComb BindFALSEbwSCANA3A3 Black & White Scan to File
10FALSELAB15x1Labour Charge (15min x1)FALSEbwSCANA4A4 Black & White Scan to File
11TRUEpA4CARDA4 Heavyweight Paper/ CardFALSECBComb Bind
12TRUEcA4A4 Colour Copy/ PrintFALSECDBCD Burn
13TRUEpA4CARDA4 Heavyweight Paper/ CardFALSEcGA0A0 Colour Plot - Graphics
14TRUEcA4A4 Colour Copy/ PrintFALSEcGA1A1 Colour Plot - Graphics
15TRUEpA4CARDA4 Heavyweight Paper/ CardFALSEcGA2A2 Colour Plot - Graphics
16TRUEcA4A4 Colour Copy/ PrintFALSEcLA0A0 Colour Plot - Line
17TRUEpA4CARDA4 Heavyweight Paper/ CardFALSEcLA1A1 Colour Plot - Line
18TRUEcA4A4 Colour Copy/ PrintFALSEcLA2A2 Colour Plot - Line
19TRUEcA3A3 Colour Copy/ PrintFALSEcPA0A0 Colour Print - Photo Quality
20TRUECBComb BindFALSEcPA1A1 Colour Print - Photo Quality
21TRUEpA4CARDA4 Heavyweight Paper/ CardFALSEcPA2A2 Colour Print - Photo Quality
22TRUEcA4DSA4 Double Sided Colour Copy/ PrintFALSEcSCANA0A0 Colour Scan to File
23FALSEcA3A3 Colour Copy/ PrintFALSEcSCANA1A1 Colour Scan to File
24TRUECBComb BindFALSEcSCANA2A2 Colour Scan to File
25FALSEcA3A3 Colour Copy/ PrintFALSEcSCANA3A3 Colour Scan to File
26TRUECBComb BindFALSEcSCANA4A4 Colour Scan to File
27FALSEbwA4DSA4 BW Double Sided Copy/ PrintFALSEcSRA3SRA3 Colour Copy/ Print
28TRUExFILE4D Ring FileFALSEDVDBDVD Burning
29
30Invoice DetailProduct List
31
32
33
Both Sheets
 
Upvote 0
Columns L and M... you were expecting us to guess that from what you posted originally? Really???

See if this formula does what you want...

=INDEX(Sheet2!A$2:A$32,MATCH(1,INDEX((Sheet2!B$2:B$32=L2)*(Sheet2!C$2:C$32=M2),),FALSE))
 
Upvote 0
It is looking at the item in the list of products. So the Invoice will have sales entries, the items in columns L and M these need to be looked up in Product List and return the value TRUE or FALSE from the product list. Hope this explains?

Alex
 
Upvote 0
Should have mentioned I have only taken a snapshot for the HTML so there are a lot more entries which is why they don't fully coordinate
 
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,072
Latest member
DW Draft

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top