LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 538
Default VLOOKUP questions

I replaced this formula:

=IF(AE16="v",IF(AG16="w",-5.5,-0.5),IF(AE16="ns",-0.5,IF(OR(AE16="x",
AE16="$",AE16="hhv",AE16="cc"),-2.45,IF(AE16="app",0,""))))

....with this VLOOKUP:

=IF(AE16="?","",VLOOKUP(AE16,defaults!C:E,IF(AG16= "w",3,2)))

The lookup table is:

Type Fee WC
0 $0.00 $0.00
$ -$2.45 -$2.45
app $0.00 $0.00
cc -$2.45 -$2.45
hhv -$2.45 -$2.45
ns -$0.50 -$0.50
v -$0.50 -$5.50
x -$2.45 -$2.45

The problems are two-fold:

1) The VLOOKUP doesn't seem to be able to handle a literal "?", thus
necessitating the 1st IF(). Is there any way to include a "Type" of "?" in my
table?

2) The only difference between the table's "Fee" and "WC" columns is the "v"
value. This is handled by the 2nd IF(). Is there a better way to deal with
this?

--
There exists a limit to the force even the most powerful
may apply without destroying themselves.
 
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 questions Steve Excel Worksheet Functions 4 April 22nd 09 09:44 PM
Two vlookup questions D.Jessup Excel Worksheet Functions 5 October 3rd 08 01:38 PM
VLOOKUP questions Noncentz303 Excel Worksheet Functions 5 May 11th 07 06:38 PM
Vlookup and few more questions :) [email protected] Excel Worksheet Functions 9 October 3rd 06 12:19 AM
VLOOKUP - 2 Questions Kathy - Lovullo Excel Worksheet Functions 1 April 14th 06 08:22 PM


All times are GMT +1. The time now is 11:03 PM.

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

About Us

"It's about Microsoft Excel"