VLOOKUP

K

Karen Smith

Below is the current formula I have, however, I need to change some
criteria, which now requires a change in the formula. Still the same look up,
but if c8="Internal" then vlookup D3..E60, if c8="external" then vlookup
G3..H60, if c8="none" then do nothing. How would I change the formula below
to make it work?

=IF(C8<>"yes","",IF(ISNA(VLOOKUP(A8&"-"&F8&"-"&G8,'Writing
Charges'!$D$3:$E$60,2,0)),"",VLOOKUP(A8&"-"&F8&"-"&G8,'Writing
Charges'!$D$3:$E$60,2,0)*I8))
 
M

Max

Try this:
=IF(OR(C8={"None";""}),"",VLOOKUP(A8&"-"&F8&"-"&G8,INDIRECT(CHOOSE(MATCH(C8,{"Internal";"External"},0),"'Writing
Charges'!D3:E60","'Writing Charges'!G3:H60")),2,0)*I8)
 
K

Karen Smith

Awesome, Thank you!!

Max said:
Try this:
=IF(OR(C8={"None";""}),"",VLOOKUP(A8&"-"&F8&"-"&G8,INDIRECT(CHOOSE(MATCH(C8,{"Internal";"External"},0),"'Writing
Charges'!D3:E60","'Writing Charges'!G3:H60")),2,0)*I8)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top