Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Heather
 
Posts: n/a
Default IF NESTED Question

Here is the formula currently:
=IF(AND($R4="NONE",$S4="NONE"),"NONE", IF(($E4-DAY($E4)+1)=AB$3,($U4+$V4)/6,
IF(($F4-DAY($F4)+1)=AB$3,($W4+$X4)/12,
IF(OR(($R4-DAY($R4)+1)=AB$3,($S4-DAY($S4)+1)=AB$3),"END", IF(AA40,AA4,0)))))

Whe If R4 and S4 = NONE, then put "none" in AB4; if date in E4 (default
to beg of month) = AB3 (also a date), then calculate; if date in F4 = AB3,
then calculate; if date in R4 = AB3 OR if date in S4 = AB3, then put "end" in
AB4; if AA40, then put $ amount that is in AA4 in cell AB4; if all false,
put $0 in AB4.

Formula seems to work - however, it is not putting the word "end" when R4 or
S4 = AB3, it simply defaults to $0. Have I forgotten a step in the formula?
Or is there a trick I don't know about?

Please HELP! I've been working on this formula for days now!

Thanks in advance,

Heather
  #2   Report Post  
 
Posts: n/a
Default

Hi
You seem to have a surfeit of brackets, which may be confusing you.
Try this:
=IF(AND($R4="NONE",$S4="NONE"),"NONE", IF($E4-DAY($E4)+1=AB$3,($U4+$V4)/6,
IF($F4-DAY($F4)+1=AB$3,($W4+$X4)/12,
IF(OR($R4-DAY($R4)+1=AB$3,$S4-DAY($S4)+1=AB$3),"END", IF(AA40,AA4,0))))
It may also be worth selecting the bit you believe to be true:
OR($R4-DAY($R4)+1=AB$3,$S4-DAY($S4)+1=AB$3)
in the formula bar and hitting F9 to see what Excel calculates it to be
(TRUE or FALSE).
Btw, I've not checked the above formula, so backup before you use it!

--
Andy.


"Heather" wrote in message
...
Here is the formula currently:
=IF(AND($R4="NONE",$S4="NONE"),"NONE",
IF(($E4-DAY($E4)+1)=AB$3,($U4+$V4)/6,
IF(($F4-DAY($F4)+1)=AB$3,($W4+$X4)/12,
IF(OR(($R4-DAY($R4)+1)=AB$3,($S4-DAY($S4)+1)=AB$3),"END",
IF(AA40,AA4,0)))))

Whe If R4 and S4 = NONE, then put "none" in AB4; if date in E4 (default
to beg of month) = AB3 (also a date), then calculate; if date in F4 = AB3,
then calculate; if date in R4 = AB3 OR if date in S4 = AB3, then put "end"
in
AB4; if AA40, then put $ amount that is in AA4 in cell AB4; if all false,
put $0 in AB4.

Formula seems to work - however, it is not putting the word "end" when R4
or
S4 = AB3, it simply defaults to $0. Have I forgotten a step in the
formula?
Or is there a trick I don't know about?

Please HELP! I've been working on this formula for days now!

Thanks in advance,

Heather



  #3   Report Post  
Heather
 
Posts: n/a
Default

Andy,
Thank you for your reply. I tried it without so many brackets, it still
does not work. hmmm?
I also tried to select the piece I believe to be true, F9 and Excel simply
responds with "Your Formula is missing a parenthesis --)" I even tried the
F9 trick on another portion of my formula where I had all the brackets and it
said the same thing.

Got any ideas? It's a mystery to me!

Thanks!
Heather


"Andy B" wrote:

Hi
You seem to have a surfeit of brackets, which may be confusing you.
Try this:
=IF(AND($R4="NONE",$S4="NONE"),"NONE", IF($E4-DAY($E4)+1=AB$3,($U4+$V4)/6,
IF($F4-DAY($F4)+1=AB$3,($W4+$X4)/12,
IF(OR($R4-DAY($R4)+1=AB$3,$S4-DAY($S4)+1=AB$3),"END", IF(AA40,AA4,0))))
It may also be worth selecting the bit you believe to be true:
OR($R4-DAY($R4)+1=AB$3,$S4-DAY($S4)+1=AB$3)
in the formula bar and hitting F9 to see what Excel calculates it to be
(TRUE or FALSE).
Btw, I've not checked the above formula, so backup before you use it!

--
Andy.


"Heather" wrote in message
...
Here is the formula currently:
=IF(AND($R4="NONE",$S4="NONE"),"NONE",
IF(($E4-DAY($E4)+1)=AB$3,($U4+$V4)/6,
IF(($F4-DAY($F4)+1)=AB$3,($W4+$X4)/12,
IF(OR(($R4-DAY($R4)+1)=AB$3,($S4-DAY($S4)+1)=AB$3),"END",
IF(AA40,AA4,0)))))

Whe If R4 and S4 = NONE, then put "none" in AB4; if date in E4 (default
to beg of month) = AB3 (also a date), then calculate; if date in F4 = AB3,
then calculate; if date in R4 = AB3 OR if date in S4 = AB3, then put "end"
in
AB4; if AA40, then put $ amount that is in AA4 in cell AB4; if all false,
put $0 in AB4.

Formula seems to work - however, it is not putting the word "end" when R4
or
S4 = AB3, it simply defaults to $0. Have I forgotten a step in the
formula?
Or is there a trick I don't know about?

Please HELP! I've been working on this formula for days now!

Thanks in advance,

Heather




  #4   Report Post  
Heather
 
Posts: n/a
Default

GOT IT!!!

=IF(AND($R4,$S4="NONE"),"NONE", IF($E4-DAY($E4)+1=AB$3,($U4+$V4)/6,
IF($F4-DAY($F4)+1=AB$3,($W4+$X4)/12,
IF(OR($R4-DAY($R4)+1,$S4-DAY($S4)+1=AB$3),"END", IF(AA40,AA4,0)))))

WOW! It even made the thing shorter!!
Thanks!
Hope this helps someone else out too!
Heather



"Heather" wrote:

Andy,
Thank you for your reply. I tried it without so many brackets, it still
does not work. hmmm?
I also tried to select the piece I believe to be true, F9 and Excel simply
responds with "Your Formula is missing a parenthesis --)" I even tried the
F9 trick on another portion of my formula where I had all the brackets and it
said the same thing.

Got any ideas? It's a mystery to me!

Thanks!
Heather


"Andy B" wrote:

Hi
You seem to have a surfeit of brackets, which may be confusing you.
Try this:
=IF(AND($R4="NONE",$S4="NONE"),"NONE", IF($E4-DAY($E4)+1=AB$3,($U4+$V4)/6,
IF($F4-DAY($F4)+1=AB$3,($W4+$X4)/12,
IF(OR($R4-DAY($R4)+1=AB$3,$S4-DAY($S4)+1=AB$3),"END", IF(AA40,AA4,0))))
It may also be worth selecting the bit you believe to be true:
OR($R4-DAY($R4)+1=AB$3,$S4-DAY($S4)+1=AB$3)
in the formula bar and hitting F9 to see what Excel calculates it to be
(TRUE or FALSE).
Btw, I've not checked the above formula, so backup before you use it!

--
Andy.


"Heather" wrote in message
...
Here is the formula currently:
=IF(AND($R4="NONE",$S4="NONE"),"NONE",
IF(($E4-DAY($E4)+1)=AB$3,($U4+$V4)/6,
IF(($F4-DAY($F4)+1)=AB$3,($W4+$X4)/12,
IF(OR(($R4-DAY($R4)+1)=AB$3,($S4-DAY($S4)+1)=AB$3),"END",
IF(AA40,AA4,0)))))

Whe If R4 and S4 = NONE, then put "none" in AB4; if date in E4 (default
to beg of month) = AB3 (also a date), then calculate; if date in F4 = AB3,
then calculate; if date in R4 = AB3 OR if date in S4 = AB3, then put "end"
in
AB4; if AA40, then put $ amount that is in AA4 in cell AB4; if all false,
put $0 in AB4.

Formula seems to work - however, it is not putting the word "end" when R4
or
S4 = AB3, it simply defaults to $0. Have I forgotten a step in the
formula?
Or is there a trick I don't know about?

Please HELP! I've been working on this formula for days now!

Thanks in advance,

Heather




  #5   Report Post  
 
Posts: n/a
Default

Hi

Glad to hear you're sorted!

--
Andy.


"Heather" wrote in message
...
GOT IT!!!

=IF(AND($R4,$S4="NONE"),"NONE", IF($E4-DAY($E4)+1=AB$3,($U4+$V4)/6,
IF($F4-DAY($F4)+1=AB$3,($W4+$X4)/12,
IF(OR($R4-DAY($R4)+1,$S4-DAY($S4)+1=AB$3),"END", IF(AA40,AA4,0)))))

WOW! It even made the thing shorter!!
Thanks!
Hope this helps someone else out too!
Heather



"Heather" wrote:

Andy,
Thank you for your reply. I tried it without so many brackets, it still
does not work. hmmm?
I also tried to select the piece I believe to be true, F9 and Excel
simply
responds with "Your Formula is missing a parenthesis --)" I even tried
the
F9 trick on another portion of my formula where I had all the brackets
and it
said the same thing.

Got any ideas? It's a mystery to me!

Thanks!
Heather


"Andy B" wrote:

Hi
You seem to have a surfeit of brackets, which may be confusing you.
Try this:
=IF(AND($R4="NONE",$S4="NONE"),"NONE",
IF($E4-DAY($E4)+1=AB$3,($U4+$V4)/6,
IF($F4-DAY($F4)+1=AB$3,($W4+$X4)/12,
IF(OR($R4-DAY($R4)+1=AB$3,$S4-DAY($S4)+1=AB$3),"END",
IF(AA40,AA4,0))))
It may also be worth selecting the bit you believe to be true:
OR($R4-DAY($R4)+1=AB$3,$S4-DAY($S4)+1=AB$3)
in the formula bar and hitting F9 to see what Excel calculates it to be
(TRUE or FALSE).
Btw, I've not checked the above formula, so backup before you use it!

--
Andy.


"Heather" wrote in message
...
Here is the formula currently:
=IF(AND($R4="NONE",$S4="NONE"),"NONE",
IF(($E4-DAY($E4)+1)=AB$3,($U4+$V4)/6,
IF(($F4-DAY($F4)+1)=AB$3,($W4+$X4)/12,
IF(OR(($R4-DAY($R4)+1)=AB$3,($S4-DAY($S4)+1)=AB$3),"END",
IF(AA40,AA4,0)))))

Whe If R4 and S4 = NONE, then put "none" in AB4; if date in E4
(default
to beg of month) = AB3 (also a date), then calculate; if date in F4 =
AB3,
then calculate; if date in R4 = AB3 OR if date in S4 = AB3, then put
"end"
in
AB4; if AA40, then put $ amount that is in AA4 in cell AB4; if all
false,
put $0 in AB4.

Formula seems to work - however, it is not putting the word "end"
when R4
or
S4 = AB3, it simply defaults to $0. Have I forgotten a step in the
formula?
Or is there a trick I don't know about?

Please HELP! I've been working on this formula for days now!

Thanks in advance,

Heather





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
Hints And Tips For New Posters In The Excel Newsgroups Gary Brown Excel Worksheet Functions 0 April 15th 05 05:47 PM
Nested IF statements John Simons Excel Worksheet Functions 14 February 16th 05 06:17 AM
An easy macro question and one I believe to be a little more diffi TroutKing Excel Worksheet Functions 3 January 18th 05 09:17 PM
€śUse of more then 7 nested if statement€ť Faisal Yameen Excel Worksheet Functions 3 January 12th 05 06:02 PM
7+ nested if statement? Turi Excel Worksheet Functions 3 December 20th 04 07:55 PM


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