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:
No I'm afraid that doesn't work either. I need to return for instance the value in cell A3,4,5,6,etc from the Invoice detail extracted from (Sheet 2) the Product List. So for A3 which is bwA4 - A4 BW Copy /Print it's needs to look this value up in the Product List and if it exists return the value TURE or FALSE from that range.
I have tried using VLOOKUP but I think there are more variables than one so I can't get it to work.

thanks again for you help

Alex
 
Upvote 0

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
The formula I posted will work. Just adjust the references to suit your scenario. The syntax is:

=INDEX(ProductListContracted,MATCH(1,INDEX((ProductListProductCode=ProductCode)*(ProductListProductDescription=ProductDescription),),FALSE))
 
Upvote 0
Sorry I am not totally au fait with Excel just basic Formulas. When you say this is the syntax I am not completely understanding. Do I need to add ' and " and cells ref's to this string?
Apologies for being so useless but this is why I come to you guys,

Alex
 
Upvote 0
On what worksheet and in which range is your Product List table (the lookup range)? In which ranges are the lookup values Product Code and Product Description?
 
Upvote 0
the selection I used for the HTML is much shorter than the full product list but effectively here the lookup range is Product List E2-G32. This show whether the item is in or out of contract (TRUE or FALSE). The Invoice Detail looks at this range and the cell in column A must reflect the value in the Product List. Hope this is clear enough as it is quite difficult to explain. Basically the client will get the Invoice Detail but the need to show if the item being charged is in contract or not,

thanks again Alex
 
Upvote 0
Sorry you've lost me I am not using any formulas this is what I was asking. I thought you could do a VLOOKUP to look at the range with the Contracted, Product Code and Item Description to return a value but I realise it is looking at more than one criteria.

Alex
 
Upvote 0
In Post #3 you said "that doesn't really work" in response to my formula in Post #2. In Post #5 you said "No sorry it doesn't" in response to Rick's question in Post #4. In Post #11 you said "No I'm afraid that doesn't work either" in response to Rick's formula in Post #7. So what formula are you using that doesn't work and in what way isn't it working? The formula I gave you in Post #2 works with your sample data in Post #1.
 
Upvote 0
I just get #N/A when I paste your formula Post No2 into Sample Post No1 cell A2. The results need to be in Column A (Contracted) Sheet 1 Invoice Detail. So Invoice Detail Cells 2A, 2B, and 2C should equal Product List 18F, 18G and 18H. Our database picks up cells 2B and 2C (Product Code and Item Description) I just add column A (Contracted) and these cells should look at the Product List and match them. Again sorry if this isn't clear it is difficult to explain properly. Thank you for your perseverance,
Alex
 
Upvote 0
Here's what I get:


Excel 2010
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
5TRUEcA3A3 Colour Copy/ PrintFALSEcSCANA3A3 Colour Scan to File
6#N/ACBComb BindFALSEcSCANA4A4 Colour Scan to File
7TRUEcA3A3 Colour Copy/ PrintFALSEcSRA3SRA3 Colour Copy/ Print
8#N/ACBComb BindFALSEDVDBDVD Burning
9TRUELAB15x1Labour Charge (15min x1)FALSEENCAPA0A0 Encapsulation
10#N/ApA4CARDA4 Heavyweight Paper/ CardFALSEENCAPA1A1 Encapsulation
11TRUEcA4A4 Colour Copy/ PrintFALSEENCAPA2A2 Encapsulation
12#N/ApA4CARDA4 Heavyweight Paper/ CardFALSEPERFPerfect Bind
13TRUEcA4A4 Colour Copy/ PrintFALSExFILE4D Ring File
14#N/ApA4CARDA4 Heavyweight Paper/ CardTRUEbwA3A3 BW Copy/ Print
15TRUEcA4A4 Colour Copy/ PrintTRUEbwA3DSA3 DS BW Copy/ Print
16#N/ApA4CARDA4 Heavyweight Paper/ CardTRUEbwA4A4 BW Copy/ Print
17TRUEcA4A4 Colour Copy/ PrintTRUEbwA4DSA4 BW Double Sided Copy/ Print
18TRUEcA3A3 Colour Copy/ PrintTRUEcA3A3 Colour Copy/ Print
19#N/ACBComb BindTRUEcA3DSA3 Double Sided Colour Copy/ Print
20#N/ApA4CARDA4 Heavyweight Paper/ CardTRUEcA4A4 Colour Copy/ Print
21TRUEcA4DSA4 Double Sided Colour Copy/ PrintTRUEcA4DSA4 Double Sided Colour Copy/ Print
22TRUEcA3A3 Colour Copy/ PrintTRUEENCAPA3A3 Encapsulation
23#N/ACBComb BindTRUEENCAPA4A4 Encapsulation
24TRUEcA3A3 Colour Copy/ PrintTRUEENCAPA5A5 Encapsulation
25#N/ACBComb BindTRUEENCAPA6A6 Encapsulation
26TRUEbwA4DSA4 BW Double Sided Copy/ PrintTRUELAB15x1Labour Charge (15min x1)
27FALSExFILE4D Ring FileTRUELAB15x1.5Labour Charge (15min x1.5)
28TRUEcA3A3 Colour Copy/ PrintTRUELAB15x2Labour Charge (15min x2)
29TRUEcA4A4 Colour Copy/ PrintTRUEpA3100A3 100gsm Paper
30#N/ApA4CARDA4 Heavyweight Paper/ CardTRUEpA3CARDA3 Heavyweight Paper/ Card
31TRUEcA4A4 Colour Copy/ PrintTRUEpA3TEARA3 Tear Proof Paper
32TRUEcA3A3 Colour Copy/ PrintFALSEpA3TINTA3 Tinted Paper
33#N/ACBComb Bind
Sheet1
Cell Formulas
RangeFormula
A2=INDEX(E$2:E$32,MATCH(1,INDEX((F$2:F$32=B2)*(G$2:G$32=C2),),FALSE))
 
Upvote 0

Forum statistics

Threads
1,215,372
Messages
6,124,531
Members
449,169
Latest member
mm424

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