#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default VLOOKUP

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))

  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default VLOOKUP

Try this:
=IF(OR(C8={"None";""}),"",VLOOKUP(A8&"-"&F8&"-"&G8,INDIRECT(CHOOSE(MATCH(C8,{"Internal";"Externa l"},0),"'Writing
Charges'!D3:E60","'Writing Charges'!G3:H60")),2,0)*I8)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Karen Smith" wrote:
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))

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default VLOOKUP

Awesome, Thank you!!

"Max" wrote:

Try this:
=IF(OR(C8={"None";""}),"",VLOOKUP(A8&"-"&F8&"-"&G8,INDIRECT(CHOOSE(MATCH(C8,{"Internal";"Externa l"},0),"'Writing
Charges'!D3:E60","'Writing Charges'!G3:H60")),2,0)*I8)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Karen Smith" wrote:
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))

  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default VLOOKUP

welcome, Karen.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Karen Smith" wrote in message
...
Awesome, Thank you!!



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
IF(AND(val1=VLOOKUP( );val2>=VLOOKUP( );val2<=VLOOKUP( );VLOOKUP( Oso Excel Worksheet Functions 2 January 26th 05 06:56 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 01:36 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"