Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Steve
 
Posts: n/a
Default 3 stupid, simple IFs

I'm trying to enter a simple (so I thought) 3-If formula, but keep getting
errors:

2 IFs work:
=IF(B1C1,B1-C1,IF(D1C1,D1-C1,""))
This formula works nicely for most of what I need, either the # or nothing.
B C D result
1 1

B C D
1 1

B C D
1

First 2 samples above result in 1, the 3rd results in "", giving me the
result I need.

However, I also need a result of the D cell (2) if B=C=D.
Trying to enter that 3rd IF isn't working. My unworking formula:

=IF(B1C1,B1-C1,IF(B1=C1=D1,D1),IF(D1C1,D1-C1),"")

The #'s will vary, but the below example is the result(2) I'd need in this
situation:
B C D
2 2 2 2

Any help for this problem would be greatly appreciated.
Thanks much,

Steve
  #2   Report Post  
JMB
 
Posts: n/a
Default

Try:
=IF(B1C1,B1-C1,IF(AND(B1=C1,B1=D1),D1),IF(D1C1,D1-C1),"")


"Steve" wrote:

I'm trying to enter a simple (so I thought) 3-If formula, but keep getting
errors:

2 IFs work:
=IF(B1C1,B1-C1,IF(D1C1,D1-C1,""))
This formula works nicely for most of what I need, either the # or nothing.
B C D result
1 1

B C D
1 1

B C D
1

First 2 samples above result in 1, the 3rd results in "", giving me the
result I need.

However, I also need a result of the D cell (2) if B=C=D.
Trying to enter that 3rd IF isn't working. My unworking formula:

=IF(B1C1,B1-C1,IF(B1=C1=D1,D1),IF(D1C1,D1-C1),"")

The #'s will vary, but the below example is the result(2) I'd need in this
situation:
B C D
2 2 2 2

Any help for this problem would be greatly appreciated.
Thanks much,

Steve

  #3   Report Post  
Steve
 
Posts: n/a
Default

Thanks, ahh, the 'and'...
Now I'm getting the #value! error

Here's row 8
=IF(B8C8,B8-C8,IF(AND(B8=C8,B8=D8),D8)),IF(D8C8,D8-C8,"")

B C D result
1 1 1 #value!

Thanks,
Steve

"JMB" wrote:

Try:
=IF(B1C1,B1-C1,IF(AND(B1=C1,B1=D1),D1),IF(D1C1,D1-C1),"")


"Steve" wrote:

I'm trying to enter a simple (so I thought) 3-If formula, but keep getting
errors:

2 IFs work:
=IF(B1C1,B1-C1,IF(D1C1,D1-C1,""))
This formula works nicely for most of what I need, either the # or nothing.
B C D result
1 1

B C D
1 1

B C D
1

First 2 samples above result in 1, the 3rd results in "", giving me the
result I need.

However, I also need a result of the D cell (2) if B=C=D.
Trying to enter that 3rd IF isn't working. My unworking formula:

=IF(B1C1,B1-C1,IF(B1=C1=D1,D1),IF(D1C1,D1-C1),"")

The #'s will vary, but the below example is the result(2) I'd need in this
situation:
B C D
2 2 2 2

Any help for this problem would be greatly appreciated.
Thanks much,

Steve

  #4   Report Post  
Anne Troy
 
Posts: n/a
Default

Just a few things out of place, Steve:
=IF(B8C8,B8-C8,IF(AND(B8=C8,B8=D8),D8,IF(D8C8,D8-C8,"")))
*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"Steve" wrote in message
...
Thanks, ahh, the 'and'...
Now I'm getting the #value! error

Here's row 8
=IF(B8C8,B8-C8,IF(AND(B8=C8,B8=D8),D8)),IF(D8C8,D8-C8,"")

B C D result
1 1 1 #value!

Thanks,
Steve

"JMB" wrote:

Try:
=IF(B1C1,B1-C1,IF(AND(B1=C1,B1=D1),D1),IF(D1C1,D1-C1),"")


"Steve" wrote:

I'm trying to enter a simple (so I thought) 3-If formula, but keep

getting
errors:

2 IFs work:
=IF(B1C1,B1-C1,IF(D1C1,D1-C1,""))
This formula works nicely for most of what I need, either the # or

nothing.
B C D result
1 1

B C D
1 1

B C D
1

First 2 samples above result in 1, the 3rd results in "", giving me

the
result I need.

However, I also need a result of the D cell (2) if B=C=D.
Trying to enter that 3rd IF isn't working. My unworking formula:

=IF(B1C1,B1-C1,IF(B1=C1=D1,D1),IF(D1C1,D1-C1),"")

The #'s will vary, but the below example is the result(2) I'd need in

this
situation:
B C D
2 2 2 2

Any help for this problem would be greatly appreciated.
Thanks much,

Steve



  #5   Report Post  
Steve
 
Posts: n/a
Default

Thanks, it works, finally !
One small problem.
My original formula produced a blank cell, which I wanted, when nothing is
in B, C, or D:
B C D result

The new formula produces a 0
B C D result
0
Why a zero and not a "" ?

Thanks again,

Steve

"Anne Troy" wrote:

Just a few things out of place, Steve:
=IF(B8C8,B8-C8,IF(AND(B8=C8,B8=D8),D8,IF(D8C8,D8-C8,"")))
*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"Steve" wrote in message
...
Thanks, ahh, the 'and'...
Now I'm getting the #value! error

Here's row 8
=IF(B8C8,B8-C8,IF(AND(B8=C8,B8=D8),D8)),IF(D8C8,D8-C8,"")

B C D result
1 1 1 #value!

Thanks,
Steve

"JMB" wrote:

Try:
=IF(B1C1,B1-C1,IF(AND(B1=C1,B1=D1),D1),IF(D1C1,D1-C1),"")


"Steve" wrote:

I'm trying to enter a simple (so I thought) 3-If formula, but keep

getting
errors:

2 IFs work:
=IF(B1C1,B1-C1,IF(D1C1,D1-C1,""))
This formula works nicely for most of what I need, either the # or

nothing.
B C D result
1 1

B C D
1 1

B C D
1

First 2 samples above result in 1, the 3rd results in "", giving me

the
result I need.

However, I also need a result of the D cell (2) if B=C=D.
Trying to enter that 3rd IF isn't working. My unworking formula:

=IF(B1C1,B1-C1,IF(B1=C1=D1,D1),IF(D1C1,D1-C1),"")

The #'s will vary, but the below example is the result(2) I'd need in

this
situation:
B C D
2 2 2 2

Any help for this problem would be greatly appreciated.
Thanks much,

Steve






  #6   Report Post  
Anne Troy
 
Posts: n/a
Default

Try this:
=IF(SUM(B8:D8)=0,"",IF(B8C8,B8-C8,IF(AND(B8=C8,B8=D8),D8,IF(D8C8,D8-C8,"")
)))
The zero was as a result of them all equaling each other (if and b8=c8 and
c8=d8, you return d8, which is nothing or zero).
*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"Steve" wrote in message
...
Thanks, it works, finally !
One small problem.
My original formula produced a blank cell, which I wanted, when nothing is
in B, C, or D:
B C D result

The new formula produces a 0
B C D result
0
Why a zero and not a "" ?

Thanks again,

Steve

"Anne Troy" wrote:

Just a few things out of place, Steve:
=IF(B8C8,B8-C8,IF(AND(B8=C8,B8=D8),D8,IF(D8C8,D8-C8,"")))
*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"Steve" wrote in message
...
Thanks, ahh, the 'and'...
Now I'm getting the #value! error

Here's row 8
=IF(B8C8,B8-C8,IF(AND(B8=C8,B8=D8),D8)),IF(D8C8,D8-C8,"")

B C D result
1 1 1 #value!

Thanks,
Steve

"JMB" wrote:

Try:
=IF(B1C1,B1-C1,IF(AND(B1=C1,B1=D1),D1),IF(D1C1,D1-C1),"")


"Steve" wrote:

I'm trying to enter a simple (so I thought) 3-If formula, but keep

getting
errors:

2 IFs work:
=IF(B1C1,B1-C1,IF(D1C1,D1-C1,""))
This formula works nicely for most of what I need, either the # or

nothing.
B C D result
1 1

B C D
1 1

B C D
1

First 2 samples above result in 1, the 3rd results in "", giving

me
the
result I need.

However, I also need a result of the D cell (2) if B=C=D.
Trying to enter that 3rd IF isn't working. My unworking formula:

=IF(B1C1,B1-C1,IF(B1=C1=D1,D1),IF(D1C1,D1-C1),"")

The #'s will vary, but the below example is the result(2) I'd need

in
this
situation:
B C D
2 2 2 2

Any help for this problem would be greatly appreciated.
Thanks much,

Steve






  #7   Report Post  
Steve
 
Posts: n/a
Default

Perfect !!!

Thank you very much,

Steve

"Anne Troy" wrote:

Try this:
=IF(SUM(B8:D8)=0,"",IF(B8C8,B8-C8,IF(AND(B8=C8,B8=D8),D8,IF(D8C8,D8-C8,"")
)))
The zero was as a result of them all equaling each other (if and b8=c8 and
c8=d8, you return d8, which is nothing or zero).
*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"Steve" wrote in message
...
Thanks, it works, finally !
One small problem.
My original formula produced a blank cell, which I wanted, when nothing is
in B, C, or D:
B C D result

The new formula produces a 0
B C D result
0
Why a zero and not a "" ?

Thanks again,

Steve

"Anne Troy" wrote:

Just a few things out of place, Steve:
=IF(B8C8,B8-C8,IF(AND(B8=C8,B8=D8),D8,IF(D8C8,D8-C8,"")))
*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"Steve" wrote in message
...
Thanks, ahh, the 'and'...
Now I'm getting the #value! error

Here's row 8
=IF(B8C8,B8-C8,IF(AND(B8=C8,B8=D8),D8)),IF(D8C8,D8-C8,"")

B C D result
1 1 1 #value!

Thanks,
Steve

"JMB" wrote:

Try:
=IF(B1C1,B1-C1,IF(AND(B1=C1,B1=D1),D1),IF(D1C1,D1-C1),"")


"Steve" wrote:

I'm trying to enter a simple (so I thought) 3-If formula, but keep
getting
errors:

2 IFs work:
=IF(B1C1,B1-C1,IF(D1C1,D1-C1,""))
This formula works nicely for most of what I need, either the # or
nothing.
B C D result
1 1

B C D
1 1

B C D
1

First 2 samples above result in 1, the 3rd results in "", giving

me
the
result I need.

However, I also need a result of the D cell (2) if B=C=D.
Trying to enter that 3rd IF isn't working. My unworking formula:

=IF(B1C1,B1-C1,IF(B1=C1=D1,D1),IF(D1C1,D1-C1),"")

The #'s will vary, but the below example is the result(2) I'd need

in
this
situation:
B C D
2 2 2 2

Any help for this problem would be greatly appreciated.
Thanks much,

Steve






  #8   Report Post  
CLR
 
Posts: n/a
Default

Steve............
Here's a mod to eliminate errors in case you might get TEXT
entrys...........

=IF(COUNTA(B8:D8)COUNT(B8:D8),"",IF(SUM(B8:D8)=0, "",IF(B8C8,B8-C8,IF(AND(B
8=C8,B8=D8),D8,IF(D8C8,D8-C8,"")))))

All one line.......watchout for wordwrap...........

Vaya con Dios,
Chuck, CABGx3


"Steve" wrote in message
...
Perfect !!!

Thank you very much,

Steve

"Anne Troy" wrote:

Try this:

=IF(SUM(B8:D8)=0,"",IF(B8C8,B8-C8,IF(AND(B8=C8,B8=D8),D8,IF(D8C8,D8-C8,"")
)))
The zero was as a result of them all equaling each other (if and b8=c8

and
c8=d8, you return d8, which is nothing or zero).
*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"Steve" wrote in message
...
Thanks, it works, finally !
One small problem.
My original formula produced a blank cell, which I wanted, when

nothing is
in B, C, or D:
B C D result

The new formula produces a 0
B C D result
0
Why a zero and not a "" ?

Thanks again,

Steve

"Anne Troy" wrote:

Just a few things out of place, Steve:
=IF(B8C8,B8-C8,IF(AND(B8=C8,B8=D8),D8,IF(D8C8,D8-C8,"")))
*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"Steve" wrote in message
...
Thanks, ahh, the 'and'...
Now I'm getting the #value! error

Here's row 8
=IF(B8C8,B8-C8,IF(AND(B8=C8,B8=D8),D8)),IF(D8C8,D8-C8,"")

B C D result
1 1 1 #value!

Thanks,
Steve

"JMB" wrote:

Try:
=IF(B1C1,B1-C1,IF(AND(B1=C1,B1=D1),D1),IF(D1C1,D1-C1),"")


"Steve" wrote:

I'm trying to enter a simple (so I thought) 3-If formula, but

keep
getting
errors:

2 IFs work:
=IF(B1C1,B1-C1,IF(D1C1,D1-C1,""))
This formula works nicely for most of what I need, either the

# or
nothing.
B C D result
1 1

B C D
1 1

B C D
1

First 2 samples above result in 1, the 3rd results in "",

giving
me
the
result I need.

However, I also need a result of the D cell (2) if B=C=D.
Trying to enter that 3rd IF isn't working. My unworking

formula:

=IF(B1C1,B1-C1,IF(B1=C1=D1,D1),IF(D1C1,D1-C1),"")

The #'s will vary, but the below example is the result(2) I'd

need
in
this
situation:
B C D
2 2 2 2

Any help for this problem would be greatly appreciated.
Thanks much,

Steve








  #9   Report Post  
Steve
 
Posts: n/a
Default

Thanks,

I'll check it out.

Steve

"CLR" wrote:

Steve............
Here's a mod to eliminate errors in case you might get TEXT
entrys...........

=IF(COUNTA(B8:D8)COUNT(B8:D8),"",IF(SUM(B8:D8)=0, "",IF(B8C8,B8-C8,IF(AND(B
8=C8,B8=D8),D8,IF(D8C8,D8-C8,"")))))

All one line.......watchout for wordwrap...........

Vaya con Dios,
Chuck, CABGx3


"Steve" wrote in message
...
Perfect !!!

Thank you very much,

Steve

"Anne Troy" wrote:

Try this:

=IF(SUM(B8:D8)=0,"",IF(B8C8,B8-C8,IF(AND(B8=C8,B8=D8),D8,IF(D8C8,D8-C8,"")
)))
The zero was as a result of them all equaling each other (if and b8=c8

and
c8=d8, you return d8, which is nothing or zero).
*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"Steve" wrote in message
...
Thanks, it works, finally !
One small problem.
My original formula produced a blank cell, which I wanted, when

nothing is
in B, C, or D:
B C D result

The new formula produces a 0
B C D result
0
Why a zero and not a "" ?

Thanks again,

Steve

"Anne Troy" wrote:

Just a few things out of place, Steve:
=IF(B8C8,B8-C8,IF(AND(B8=C8,B8=D8),D8,IF(D8C8,D8-C8,"")))
*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"Steve" wrote in message
...
Thanks, ahh, the 'and'...
Now I'm getting the #value! error

Here's row 8
=IF(B8C8,B8-C8,IF(AND(B8=C8,B8=D8),D8)),IF(D8C8,D8-C8,"")

B C D result
1 1 1 #value!

Thanks,
Steve

"JMB" wrote:

Try:
=IF(B1C1,B1-C1,IF(AND(B1=C1,B1=D1),D1),IF(D1C1,D1-C1),"")


"Steve" wrote:

I'm trying to enter a simple (so I thought) 3-If formula, but

keep
getting
errors:

2 IFs work:
=IF(B1C1,B1-C1,IF(D1C1,D1-C1,""))
This formula works nicely for most of what I need, either the

# or
nothing.
B C D result
1 1

B C D
1 1

B C D
1

First 2 samples above result in 1, the 3rd results in "",

giving
me
the
result I need.

However, I also need a result of the D cell (2) if B=C=D.
Trying to enter that 3rd IF isn't working. My unworking

formula:

=IF(B1C1,B1-C1,IF(B1=C1=D1,D1),IF(D1C1,D1-C1),"")

The #'s will vary, but the below example is the result(2) I'd

need
in
this
situation:
B C D
2 2 2 2

Any help for this problem would be greatly appreciated.
Thanks much,

Steve









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
Simple Simple Excel usage question BookerW Excel Discussion (Misc queries) 1 June 23rd 05 10:06 PM
Help with what should be a simple formula B Millar via OfficeKB.com Excel Worksheet Functions 2 June 16th 05 04:18 PM
Stupid Excel operating Straka Excel Discussion (Misc queries) 8 June 2nd 05 09:18 PM
Simple But Stumped Brian Keanie Excel Discussion (Misc queries) 3 February 5th 05 02:56 AM
Excel Miscalculates simple formula..Help!! Dave Excel Worksheet Functions 1 January 12th 05 03:30 PM


All times are GMT +1. The time now is 06:42 PM.

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"