Hi,
HELP PLEASE!
I am having trouble using a combination of IF and VLOOKUP functions.
I have a quote form that I want to filter through to workshop sheet in the same workbook. I want to be able to search a range of cells on the quote form for an item, say MDF, and then return the quantity in the corresponding cell adjacent to MDF to the workshop order form.
For example (see example below); I want to be able to write a formula that can search range of cells A2:D4 for 'MDF' and then return the value that corresponds to 'MDF' (in this case cell A2, 24).
I have been using IF and COUNTIF, but can only get the formula to return a true/false (YES/NO) expression. I have been using =IF(COUNTIF(A2:D4,"MDF"),"yes"). I am thinking that I need the "yes" part of this formula to perform a VLOOKUP function to return 'If MDF then return value in cell next to MDF'
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Quantity[/TD]
[TD]Description[/TD]
[TD]Price[/TD]
[TD]Total[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]24[/TD]
[TD]MDF[/TD]
[TD]2[/TD]
[TD]48[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Any help anyone can provide is very much appreciated, as I am going around in circles!
Thank you.
Pad
HELP PLEASE!
I am having trouble using a combination of IF and VLOOKUP functions.
I have a quote form that I want to filter through to workshop sheet in the same workbook. I want to be able to search a range of cells on the quote form for an item, say MDF, and then return the quantity in the corresponding cell adjacent to MDF to the workshop order form.
For example (see example below); I want to be able to write a formula that can search range of cells A2:D4 for 'MDF' and then return the value that corresponds to 'MDF' (in this case cell A2, 24).
I have been using IF and COUNTIF, but can only get the formula to return a true/false (YES/NO) expression. I have been using =IF(COUNTIF(A2:D4,"MDF"),"yes"). I am thinking that I need the "yes" part of this formula to perform a VLOOKUP function to return 'If MDF then return value in cell next to MDF'
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Quantity[/TD]
[TD]Description[/TD]
[TD]Price[/TD]
[TD]Total[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]24[/TD]
[TD]MDF[/TD]
[TD]2[/TD]
[TD]48[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Any help anyone can provide is very much appreciated, as I am going around in circles!
Thank you.
Pad