Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 2
Default Multiple IF conditions

Hi,

I tried using the search feature, but could not find the answer I need. I'm working on a spreadsheet where I need to satisfy multiple conditions.

Cell C3 is a manually entered amount that will be used with cell E3, which is also a manually entered amount.

EX: C3=25 and E3= either 150 or -150 (manually entered).

If E3 is a positive number then C3 is multiplied by E3% in cell F3.

EX for F3: IF(E3=0,C3*E3%,C3/E3%

So far, so good. But now I have another condition in H3 that will either be true or false. If it's true AND E3 is a positive number, then I simply want F3 to show (C3*E3%). If it's false, then I want it to show C3. However, if F3 is false and E3 is a negative number, then I need (C3*E3%) and if E3 is a positive number then C3.

I hope this makes sense to someone as it barely makes sense to me :). I'm also not sure it's even possible to do this in one cell as this might be too many conditions to satisfy. I'd really appreciate any help with this. Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,514
Default Multiple IF conditions

Try this in F3...

=IF(OR(AND($E30,$H3),AND($E3<0,NOT($H3))),$C3*$E3 %,$C3)

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


  #3   Report Post  
Junior Member
 
Posts: 2
Default

Quote:
Originally Posted by GS[_2_] View Post
Try this in F3...

=IF(OR(AND($E30,$H3),AND($E3<0,NOT($H3))),$C3*$E3 %,$C3)

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion
Thank you Garry. I wound up with this, which also seems to do the job:

=IF(F3="False",-C3,C3*(ABS(E3)/100)^SIGN(E3))

Thanks again!
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,514
Default Multiple IF conditions

'GS[_2_ Wrote:
;1611305']Try this in F3...

=IF(OR(AND($E30,$H3),AND($E3<0,NOT($H3))),$C3*$E3 %,$C3)

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


Thank you Garry. I wound up with this, which also seems to do the
job:

=IF(F3="False",-C3,C3*(ABS(E3)/100)^SIGN(E3))

Thanks again!


Glad you got it sorted...

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


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
Setting multiple conditions to return a figure from multiple cells Sapper Excel Discussion (Misc queries) 4 April 26th 09 10:33 PM
SUMPRODUCT or INDEX/MATCH for multiple conditions and multiple rec TravisB Excel Discussion (Misc queries) 21 March 16th 07 09:49 PM
Multiple conditions and multiple return values Minerva Excel Worksheet Functions 3 February 16th 06 06:57 AM
Combining Text from multiple cells under multiple conditions KNS Excel Worksheet Functions 2 June 15th 05 11:00 PM
How to multiple conditions to validate more than 2 conditions to . Bhuvana Govind Excel Worksheet Functions 1 January 28th 05 07:07 PM


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