Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
allertonagain
 
Posts: n/a
Default to large if formula

hi trying to wright a if formula eg if b1=1 then (c2*d2+e2) if b1=2 then
(c2*d2)
if b1=3 then (c2*d2-e2) i need to have 5 if test just like the above
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Arvi Laanemets
 
Posts: n/a
Default to large if formula

Hi

=CHOOSE(B1,C2*D2+E2,C2*D2,C2*D2-E2,...)
or (when the multiply part of formula remains same)
=C2*D2+CHOOSE(B1,E2,0,-E2,...)

When the added value in formula changes as E2,0,-E2,-2*E2,-3*E2, then the
formula will be simpler:
=C2*D2+E2*(2-B1)


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"allertonagain" wrote in message
...
hi trying to wright a if formula eg if b1=1 then (c2*d2+e2) if b1=2 then
(c2*d2)
if b1=3 then (c2*d2-e2) i need to have 5 if test just like the above



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
EdMac
 
Posts: n/a
Default to large if formula


Generally if you follow the logic below you will find it easy

=If(condition1,Do this,If(condition2,do that,if(condition3,Do
another,If(......

Remember to close off al the brackets at the end

Ed


--
EdMac
------------------------------------------------------------------------
EdMac's Profile: http://www.excelforum.com/member.php...o&userid=30736
View this thread: http://www.excelforum.com/showthread...hreadid=511623

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
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
adding row to forumla carrera Excel Discussion (Misc queries) 9 August 23rd 05 10:24 PM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


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