#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Multiple ifs


Here is a quick one for you gurus. BTW thanks for your help in advance
I have three different (insurance options) values in a column that has
145 employees. I have a new rate that I have to replace. So I want a
formula that basically reads like this - if b2=100 change it to 125, if
it equals 101.25 then change it to 128.45 and last option would be if it
equals 110 then change it to 135. If I get the first row correct I will
then copy it down.




--
ab3d4u
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Multiple ifs

=LOOKUP(A1,{0,100,101.25,110;"",125,128.45,135})

Vaya con Dios,
Chuck, CABGx3



"ab3d4u" wrote:


Here is a quick one for you gurus. BTW thanks for your help in advance
I have three different (insurance options) values in a column that has
145 employees. I have a new rate that I have to replace. So I want a
formula that basically reads like this - if b2=100 change it to 125, if
it equals 101.25 then change it to 128.45 and last option would be if it
equals 110 then change it to 135. If I get the first row correct I will
then copy it down.




--
ab3d4u

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Multiple ifs

On Thu, 6 Dec 2007 17:50:34 +0000, ab3d4u
wrote:


Here is a quick one for you gurus. BTW thanks for your help in advance
I have three different (insurance options) values in a column that has
145 employees. I have a new rate that I have to replace. So I want a
formula that basically reads like this - if b2=100 change it to 125, if
it equals 101.25 then change it to 128.45 and last option would be if it
equals 110 then change it to 135. If I get the first row correct I will
then copy it down.



=VLOOKUP(B2,{100,125;101.25,128.45;110,135},2,0)

Note that you did not indicate what you want if B2 does NOT equal one of your
three choices. The above formula will return an error in that instance. It
could be modified to do something else.
--ron
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Multiple ifs

=LOOKUP(B2,{100,101.25,110},{125,128.45,135}) entered in C2

Could there be any other possibile values in column B?

If so, how would you want to deal with those?


Gord Dibben MS Excel MVP

On Thu, 6 Dec 2007 17:50:34 +0000, ab3d4u
wrote:


Here is a quick one for you gurus. BTW thanks for your help in advance
I have three different (insurance options) values in a column that has
145 employees. I have a new rate that I have to replace. So I want a
formula that basically reads like this - if b2=100 change it to 125, if
it equals 101.25 then change it to 128.45 and last option would be if it
equals 110 then change it to 135. If I get the first row correct I will
then copy it down.


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
Automated multiple text files into multiple sheets in one workbook Dr Dan Excel Discussion (Misc queries) 14 November 4th 07 11:32 AM
Delete Blank Rows Code - Multiple Worksheets - Multiple Documents BenS Excel Discussion (Misc queries) 3 June 29th 07 12:20 AM
Index & Match functions - multiple criteria and multiple results [email protected] Excel Worksheet Functions 4 May 2nd 07 03:13 AM
Display multiple lines of text within a cell from multiple column. Zeeshan Zaheer Excel Worksheet Functions 3 August 23rd 06 10:08 AM
view multiple files in multiple windows on multiple screens. tcom Excel Discussion (Misc queries) 7 September 15th 05 09:35 PM


All times are GMT +1. The time now is 12:23 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"