Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
djarcadian
 
Posts: n/a
Default how do I write this formula?


cell1+cell2<cell3 then (cell1+cell2) X 0.062
cell1+cell2cell3 then (cell3-cell1) X 0.062


How would I write this formula?


--
djarcadian
------------------------------------------------------------------------
djarcadian's Profile: http://www.excelforum.com/member.php...o&userid=15877
View this thread: http://www.excelforum.com/showthread...hreadid=466937

  #2   Report Post  
MrShorty
 
Posts: n/a
Default


IF(condition,value_if_true,value_if_false)

=IF(cell1+cell2<cell3,(cell1+cell2)*.062,(cell3-cell1)*.062) Note that
your problem statement doesn't specify what to do if cell1+cell2=cell3.
I've put this condition in with the case where cell1+cell2cell3. Adapt
as needed.


--
MrShorty
------------------------------------------------------------------------
MrShorty's Profile: http://www.excelforum.com/member.php...o&userid=22181
View this thread: http://www.excelforum.com/showthread...hreadid=466937

  #3   Report Post  
djarcadian
 
Posts: n/a
Default


I just realized that if cell1 is greater than cell3 then the results
should be zero. How would I account for that?


--
djarcadian
------------------------------------------------------------------------
djarcadian's Profile: http://www.excelforum.com/member.php...o&userid=15877
View this thread: http://www.excelforum.com/showthread...hreadid=466937

  #4   Report Post  
MrShorty
 
Posts: n/a
Default


Nest the above IF function inside of a another IF function
=IF(cell1cell3,0,IF(...)) Note that Excel is limited to 7 nested
IF's, so if your decision tree has many more branches to it, you'll
need to come up with another approach.


--
MrShorty
------------------------------------------------------------------------
MrShorty's Profile: http://www.excelforum.com/member.php...o&userid=22181
View this thread: http://www.excelforum.com/showthread...hreadid=466937

  #5   Report Post  
djarcadian
 
Posts: n/a
Default


Thanks for your help! :)


--
djarcadian
------------------------------------------------------------------------
djarcadian's Profile: http://www.excelforum.com/member.php...o&userid=15877
View this thread: http://www.excelforum.com/showthread...hreadid=466937

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
Formula works in some cells, doesn't in other Wowbagger New Users to Excel 13 June 30th 05 03:21 PM
how do i write a formula and keep in in formula form, so it DOESN. norcalchick2207 Excel Discussion (Misc queries) 2 February 4th 05 08:38 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
revert formula insertion to old method Don't be a pain in the ass Setting up and Configuration of Excel 0 January 24th 05 01:49 PM
How do I write my formula to automatically regenerate a RAND () i. Regi Excel Worksheet Functions 1 December 8th 04 10:06 PM


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