Hi everybody!
I have a need to look up the cost price of items entered in a spreadsheet. The item code is listed down in column A. To the right of column A (let's say from columns K to T) I have 10 columns for a range of options available for each item listed in column A - and each option has a different price.
So, let's say I have item BB100 in cell A2 (row 1 reserved for headings), I would then have a price in column K2, a price in L2, a price in M2 etc, all the way up to T2. The headers of columns K to T, i.e. cells K1 to T1, are simply the numbers 1 through 10, 1 being used for the colour white, 2 for the colour blue, etc.
If item BB100 is sold, I only need to know the corresponding "value" linked to that colour to find the correct price, so if I then change the item code from BB100 to BB100/1 for white on the spreadsheet where the data of the sold stock is captured (Say Sheet2) , I would like Excel to return the corresponding value in the range K2:T100 from the spreadsheet where the cost price is stored (Say Sheet1). The value for the actual item on Sheet1, column A will still be BB100, though - I only thought of adding the "/1" on Sheet2, to indicate a white item BB100.
Does anyone know of some magic formula/VBA/function which would return to the relevant cell on sheet 2 where the answer needs to be (Let's say cell B2 on Sheet2), the value from Sheet1 under heading 1 (say column K in my example) for item BB100, or from the column linked to the heading 2 if I added "/2" to the BB100?
There are just too many items listed to have a row allocated to each item, say BB100/1, BB100/2 and then having all the values in a single column, hence my hoping that there may be some magic out there...
I was not trying to direct anybody in a specific direction with what I'd described above - I used it more to explain my need.
Hope someone can help me out!
Kindest possible regards
Harry Fröhlich
I have a need to look up the cost price of items entered in a spreadsheet. The item code is listed down in column A. To the right of column A (let's say from columns K to T) I have 10 columns for a range of options available for each item listed in column A - and each option has a different price.
So, let's say I have item BB100 in cell A2 (row 1 reserved for headings), I would then have a price in column K2, a price in L2, a price in M2 etc, all the way up to T2. The headers of columns K to T, i.e. cells K1 to T1, are simply the numbers 1 through 10, 1 being used for the colour white, 2 for the colour blue, etc.
If item BB100 is sold, I only need to know the corresponding "value" linked to that colour to find the correct price, so if I then change the item code from BB100 to BB100/1 for white on the spreadsheet where the data of the sold stock is captured (Say Sheet2) , I would like Excel to return the corresponding value in the range K2:T100 from the spreadsheet where the cost price is stored (Say Sheet1). The value for the actual item on Sheet1, column A will still be BB100, though - I only thought of adding the "/1" on Sheet2, to indicate a white item BB100.
Does anyone know of some magic formula/VBA/function which would return to the relevant cell on sheet 2 where the answer needs to be (Let's say cell B2 on Sheet2), the value from Sheet1 under heading 1 (say column K in my example) for item BB100, or from the column linked to the heading 2 if I added "/2" to the BB100?
There are just too many items listed to have a row allocated to each item, say BB100/1, BB100/2 and then having all the values in a single column, hence my hoping that there may be some magic out there...
I was not trying to direct anybody in a specific direction with what I'd described above - I used it more to explain my need.
Hope someone can help me out!
Kindest possible regards
Harry Fröhlich