A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

If OR formula



 
 
Thread Tools Display Modes
  #1  
Old June 1st, 2010, 01:53 AM posted to microsoft.public.excel.worksheet.functions
Susan
external usenet poster
 
Posts: 651
Default If OR formula

I am trying to write a formula that will first look at the value in C3 which
is identified by either 1 or 99. Then depending on either of these two
numbers, use a specific vlookup to a certain table. The best way I can
explain is to

If cell c3="1", then vlookup(a3,named range, 7,0)*B3 or if cell c3="99" then
vlookup(a3,named range,7,0)*b3

A3 B3 C3 D3
CPT Multiplier Locality 01 or 99 Allowable
99201 120%

Susan

  #2  
Old June 1st, 2010, 02:51 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default If OR formula

If cell c3="1", then vlookup(a3,named range, 7,0)*B3
or if cell c3="99" then vlookup(a3,named range,7,0)*b3


So you have 2 different lookup tables?

Assuming that C3 can only be either 1 or 99 and nothing else.

Try this...

=VLOOKUP(A3,IF(C3=1,named_range1,named_range2),7,0 )*B3

--
Biff
Microsoft Excel MVP


"Susan" wrote in message
...
I am trying to write a formula that will first look at the value in C3
which
is identified by either 1 or 99. Then depending on either of these two
numbers, use a specific vlookup to a certain table. The best way I can
explain is to

If cell c3="1", then vlookup(a3,named range, 7,0)*B3 or if cell c3="99"
then
vlookup(a3,named range,7,0)*b3

A3 B3 C3 D3
CPT Multiplier Locality 01 or 99 Allowable
99201 120%

Susan



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:44 PM.


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