Condition to find oldest date

Scotto811

New Member
Joined
Apr 8, 2011
Messages
11
Hey everyone, I'm programming a spread sheet and I'm looking for the oldest date in a column with this command; =SMALL(E10:E4000,1)

It's working very nicely, but I want to only find the oldest date if the comulmn next to it is blank. The column next to it is a closed issue date, so if there is no date the issue is open. I was hoping to use the if command to have excel look at the cell next to it, if it has a date then move down to the next until it finds a blank (therefore open) cell and list that as the oldest date.

Attached a screen shot for reference. in the screen shot it would stop on the red box and provide that date 4/7/2010 because the closed issue box is empty next to it.



Uploaded with ImageShack.us

I'm using Cell 10:4000 because the number of rows changes but never goes over 4000, I also have the top 9 cells frozen so they will never be used for calculations.

Thanks for any help in advance!
Scott-
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hi,

Maybe this array-formula
=MIN(IF(F10:F4000="",IF(E10:E4000<>"",E10:E4000)))
CTRL+SHIFT+ENTER

HTH

M>
 
Upvote 0
no luck so far, it doesnt know to move down so it just gives the VALUE error in the cell. Trickey lil guy this formula.....
 
Upvote 0
Did you confirm the formula with Ctrl+Shift+Enter?

Hold down both Ctrl and Shift and hit Enter

M.
 
Upvote 0
If everything works ok Excel wraps the formula with curly-braces. Like this:
{=MIN(IF(F10:F4000="",IF(E10:E4000<>"",E10:E4000)))}

Take a look at the formula-bar

M.
 
Upvote 0
I actually re did it and it was working. I filled in a cell and unfortunately though the issue was the formula. Thanks and sorry for the confusion! :)
 
Upvote 0
Any change I could add a condition to count the number of dates that are open over 250 days to this? It would have to follow the same formula of needing a blank cell still.

Thanks in advance... again :)
 
Upvote 0
Hi,

What precisely do you mean by "dates that are open over 250 days to this"?

M.
 
Upvote 0
Sorry, re reading this i realize it doesn't make any sense. the =min command doesn't apply here.....

I'm looking for it to count the number of dates that are older than 250 days old, but only when the cells in 410:f4000 are empty. the current date is inputted by the user inside cell; D1 on the spreadsheet.
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,682
Members
452,937
Latest member
Bhg1984

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