0

I'm trying to create a cutting list sheet on excel and I have my reference sheet on one tab then the cutting list on the other.

The reference sheet will have duplicate values in each column, for example column A will say: FLAT BAR in every row there is a flat bar, and in column B it will have the dimensions of the product, which will have several duplicates over the entire reference sheet. How would I write the code to check whether both are true in a row and output the G column value for that row?

I have tried this formula: =INDEX('Reference Sheet'!A3:G100,MATCH(A4,'Reference Sheet'!A3:G100,0),MATCH('Order Sheet'!B4,'Reference Sheet'!A3:G100,0))

But I get "A value is not available", likely because the match formulas are not working together but rather returning multiple values each.

After getting a suggestion I tried the formula: {=INDEX('Reference Sheet'!A3:G100,MATCH(A4&B4,'Reference Sheet'!A$3:A$100&'Reference Sheet'!B$1:B$100),7)} However no matter how I manipulate the formula I get a value of 0, Heres my list of columns: A - The type of steel (Flat bar, etc) ' Worth noting the computer is getting values for this, since its not outputting an error, just a 0 B - The steel's dimensions ' All spelt correctly its an exact match C - Empty D - The constant length of each piece specified on the brochure E - The price per 'length' of material which is specified in D F - Empty G - Price/mm ' The formula =E/D

In the buying sheet, the A column specifies the type of steel and the B column specifies the dimensions, from that point that is all i need to lookup. I am trying to lookup the value of G for a row where the column A and B in the buying sheet match column A and B in the reference sheet.

Update #2: I used the suggestion and got this: =INDEX('Reference Sheet'!G:G,MATCH(A4&B4,'Reference Sheet'!A$3:A$100&'Reference Sheet'!B$1:B$100)) My issue now is that it is only checking for the A column and returning the first result, whereas I want it to check for the dimensions too.

browny121
  • 1
  • 1
  • Put some sample data so that we can understand your data structure and suggest you. – Harun24hr Jun 25 '21 at 02:28
  • There is a typo in your formula. The ranges sizes in the lookup parameter must be the size. You have `'Reference Sheet'!A$3:A$100&'Reference Sheet'!B$1:B$100` (from `A3` and `B1`) Should be `'Reference Sheet'!A$1:A$100&'Reference Sheet'!B$1:B$100` (both from row `1`) – chris neilsen Jun 25 '21 at 04:30
  • Also note that it's an Array Formula. If you are using a version of Excel that doesn't support Dynamic arrays, enter it with Ctrl-Shift-Enter - as discussed in the comments under the linked answer. (And by the way if you are using a version that supports Dynmaic Arrays, there is a better way using `Filter`) – chris neilsen Jun 25 '21 at 04:42

0 Answers0