Nested Formula Not Working

that_one_girl

New Member
Joined
Mar 22, 2017
Messages
43
Ok I'm not sure what I am doing wrong, can someone help?

Each of these formulas on their own in a cell return the value I want
(the first IF returns the Initials next to the Begin and Deadline date ranges in the correct areas, and the second returns DONE if there's a date in the completed column)

BUT when I combine these in a cell, because I need both of these to work at the same time, it gives me a value error.......can anyone help?

ALONE:
=IF(AND(Dates>=Begin,Dates<=Deadline),$G:$G,"")
=IF(COMPLETE=EXACT(COMPLETE,Dates),"","DONE")
----> works great!

TOGETHER AS:
=IF(AND(Dates>=Begin,Dates<=Deadline),STAFF,"")*OR(IF(COMPLETE=EXACT(COMPLETE,Dates),"","DONE"))
-----> :( no good....

I need my worksheet to
1. Look at the BEGIN and DEADLINE dates (formatted btw as mmm/dd/yy), and enter the STAFF initials in the DATES range that has the dates from Begin through and including Deadline
2. If a date is entered in COMPLETE, I need the DATES range to then enter DONE no matter what else could have been there (this would override the STAFF initials if they had the same dates)

Each of these formulas on their own does this, but not together...........can anyone help me nest?





Here are my ranges and what I need it to look like

|<--------------------"DATES" RANGE---------------->
BEGIN
COMPLETE
DEADLINE
STAFF
Apr-25-17
Apr-26-17
Apr-27-17
Apr-28-17
May-01-17
May-02-17
May-03-17
Apr-25-17
Apr-25-17
VH
VH
May-01-17
May-02-17
May-03-17
ML
ML
DONE
ML
Apr-26-17
Apr-26-17Apr-28-17
VH
DONEVHVH
Jun-30-17
Jun-30-17
MC

<tbody>
</tbody>
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Not really sure what you are doing, but combining those 2 would maybe be something like this...

=IF(AND(Dates>=Begin,Dates<=Deadline),STAFF,IF(COMPLETE<>EXACT(COMPLETE,Dates),"DONE",""))
 
Upvote 0
I tried this =IF(F$2=$C4,"DONE",IF(AND(F$2>=$B4,F$2<=$D4),$E:$E,""))


Supposing this is how your table was set up, paste that from E3:K6

A
B
C
D
E
F
G
H
I
J
K
1
BEGIN
COMPLETE
DEADLINE
STAFF
Apr-25-2017
Apr-26-2017
Apr-27-2017
Apr-28-2017
May-01-2017
May-02-2017
May-03-2017
2
3
Apr-25-2017
Apr-25-2017
VH
VH
4
May-01-2017
May-02-2017
May-03-2017
ML
ML
DONE
ML
5
Apr-26-2017
Apr-26-2017
Apr-28-2017
VH
DONE
VH
VH
6
Jun-30-2017
Jun-30-2017
MC

<tbody>
</tbody>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,331
Messages
6,124,311
Members
449,152
Latest member
PressEscape

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top