Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Dave O.
 
Posts: n/a
Default I need help with this formula

if cell c5=no and g5=195 then h5=0
if cell c5=no and g5=0 then h5=195
if cell c5=yes and g5=750 then h5=0
if cell c5=yes and g5=<750 then h5=750-g5*50%
  #2   Report Post  
Kassie
 
Posts: n/a
Default

Hi Dave O

Try this:
=IF(AND(C5="no",G5=195),0,IF(AND(C5="no",G5=0),195 ,IF(AND(C5="yes",G5=750),0,IF(AND(C5="yes",G5<750) ,(750-G5)*0.5,""))))

You do no specify what should happen when not one of your conditions are
met, hence the "" at the end, otherwise G5 will read FALSE

HTH

"Dave O." wrote:

if cell c5=no and g5=195 then h5=0
if cell c5=no and g5=0 then h5=195
if cell c5=yes and g5=750 then h5=0
if cell c5=yes and g5=<750 then h5=750-g5*50%

  #3   Report Post  
JulieD
 
Posts: n/a
Default

Hi David

I'm assuming you're putting the formula in cell H5

=IF(C5="no",IF(G5=195,0,IF(G5=0,195,"something else
1")),IF(C5="yes",IF(G5=750,0,IF(G5<750,(750-G5)*50%,"something else
2")),"something else 3"))

replace
something else 1 with what you want when C5 = "no" and G5 is neither 0 or
195
something else 2 with what you want when C5 = "yes" and G5 is not <=750
something else 3 with what you want when C5 is neither no nor yes
--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
....well i'm working on it anyway
"Dave O." <Dave wrote in message
...
if cell c5=no and g5=195 then h5=0
if cell c5=no and g5=0 then h5=195
if cell c5=yes and g5=750 then h5=0
if cell c5=yes and g5=<750 then h5=750-g5*50%



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
IF & VLOOKUP FORMULA taxmom Excel Worksheet Functions 3 March 2nd 05 03:35 PM
Problem with VBA returning the contents of a long formula. [email protected] Excel Discussion (Misc queries) 2 February 23rd 05 12:14 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM


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