Excel Equation to Give Corresponding Value For Earliest Filled Date Column

islandexcel8

New Member
Joined
Jul 31, 2017
Messages
3
Hello,

I'm looking into creating an simpler equation without using VBA for the following:

I have a list of columns with dates as the heading. The user inserts the quantity of parts in which ever column the due date would be, say for the 21-May-18. I have a cell column that would return the value for this date.

However, say they now add another quantity within the same row of data, but on the 30-April-18 column, the cell column should return the earliest date of all of them. In this case it should return 30-April-18. (see my table below for this example- 3rd row)

I'm looking for an equation that would search all the dates and return the earliest date value if that cell is fill out (as seen in the table).

So far, I have thought of this complex if statement, but I would like to simplify it in the case I need to add more date columns, maybe a VLookup/HLookup?.

The equation I have is as follows:
=IF(AQ16<>"",$AQ$1,IF(AR16<>"",$AR$1,IF(AS16<>"",$AS$1,IF(AT16<>"",$AT$1,IF(AU16<>"",$AU$1,IF(AV16<>"",$AV$1,IF(AW16<>"",$AW$1,IF(AX16<>"",$AX$1,IF(AY16<>"",$AY$1,"N/A")))))))))

Any help would be greatly appreciated

[TABLE="class: grid, width: 372"]
<colgroup><col><col span="9"></colgroup><tbody>[TR]
[TD]Return Date[/TD]
[TD]23-Apr-18[/TD]
[TD]30-Apr-18[/TD]
[TD]7-May-18[/TD]
[TD]14-May-18[/TD]
[TD]21-May-18[/TD]
[TD]28-May-18[/TD]
[TD]4-Jun-18[/TD]
[TD]11-Jun-18[/TD]
[TD]18-Jun-18[/TD]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[TD]21-May- 18[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]50[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]30-Apr-18[/TD]
[TD] [/TD]
[TD]200[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]400[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]30-Apr-18[/TD]
[TD] [/TD]
[TD]50[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]50[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]14-May-18[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]50[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]14-May-18[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]50[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]14-May-18[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]50[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]14-May-18[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]50[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]23-Apr-18[/TD]
[TD]60[/TD]
[TD]60[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]50[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Figured it out after some research on index and match funtions

instead of all the if statements I'm now using this:

=INDEX(AQ$1:AY$1,MATCH(TRUE,INDEX(AQ6:AY6<>0,),0))
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,325
Members
452,635
Latest member
laura12345

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