Return the first non blank cell in column that contains a date

vdberg20

New Member
Joined
Jul 25, 2013
Messages
8
Hi everyone

Example:

1. I have a column E and with several blank cells, some of which contains dates. I want all the cells with dates returning the date in sequence for the entire column range E in A1, then A2, etc

2. Then next to each date in B1, B2 etc return the name (text) in column B

3. Then to return the text content in E$4$ for each of the dates it found in 1 in cell c1

sample results:

a1 b1 c1
1 January 2013 TextB Company A
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hi everyone

Example:

1. I have a column E and with several blank cells, some of which contains dates. I want all the cells with dates returning the date in sequence for the entire column range E in A1, then A2, etc

2. Then next to each date in B1, B2 etc return the name (text) in column B

3. Then to return the text content in E$4$ for each of the dates it found in 1 in cell c1

sample results:

a1 b1 c1
1 January 2013 TextB Company A
Hello and welcome.
Coudl you post your data in more friendly format?
Please see my signature on how to do it.
 
Upvote 0
[TABLE="width: 685"]
<colgroup><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]Description[/TD]
[TD][/TD]
[TD][/TD]
[TD]Client A[/TD]
[TD]Client B[/TD]
[TD]Client C[/TD]
[/TR]
[TR]
[TD]Process 1[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]01 December 2013[/TD]
[TD="align: right"]01 November 2013[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Process 2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]05 November 2013[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Process 3[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]03 December 2013[/TD]
[TD][/TD]
[TD="align: right"]08 December 2013[/TD]
[/TR]
[TR]
[TD]Process 4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Process 5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]10 November 2013[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Process 6[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]08 December 2013[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Process 7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 4"]Results Need: (in date order) formulas for column a,b,c?[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Description[/TD]
[TD]Date[/TD]
[TD]Client[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Process 1[/TD]
[TD="align: right"]01 November 2013[/TD]
[TD]Client B[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Process 2[/TD]
[TD="align: right"]05 November 2013[/TD]
[TD]Client B[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Process 5[/TD]
[TD="align: right"]10 November 2013[/TD]
[TD]Client B[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Process 1[/TD]
[TD="align: right"]01 December 2013[/TD]
[TD]Client A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Process 3[/TD]
[TD="align: right"]03 December 2013[/TD]
[TD]Client A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Process 3[/TD]
[TD="align: right"]08 December 2013[/TD]
[TD]Client A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Process 6[/TD]
[TD="align: right"]08 December 2013[/TD]
[TD]Client C[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
[TABLE="width: 685"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]Description[/TD]
[TD][/TD]
[TD][/TD]
[TD]Client A[/TD]
[TD]Client B[/TD]
[TD]Client C[/TD]
[/TR]
[TR]
[TD]Process 1[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]01 December 2013[/TD]
[TD="align: right"]01 November 2013[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Process 2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]05 November 2013[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Process 3[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]03 December 2013[/TD]
[TD][/TD]
[TD="align: right"]08 December 2013[/TD]
[/TR]
[TR]
[TD]Process 4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Process 5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]10 November 2013[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Process 6[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]08 December 2013[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Process 7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 4"]Results Need: (in date order) formulas for column a,b,c?[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Description[/TD]
[TD]Date[/TD]
[TD]Client[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Process 1[/TD]
[TD="align: right"]01 November 2013[/TD]
[TD]Client B[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Process 2[/TD]
[TD="align: right"]05 November 2013[/TD]
[TD]Client B[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Process 5[/TD]
[TD="align: right"]10 November 2013[/TD]
[TD]Client B[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Process 1[/TD]
[TD="align: right"]01 December 2013[/TD]
[TD]Client A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Process 3[/TD]
[TD="align: right"]03 December 2013[/TD]
[TD]Client A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Process 3[/TD]
[TD="align: right"]08 December 2013[/TD]
[TD]Client A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Process 6[/TD]
[TD="align: right"]08 December 2013[/TD]
[TD]Client C[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Excel 2010
ABCDEF
1DescriptionClient AClient BClient C
2Process 11-Dec-131-Nov-13
3Process 25-Nov-13
4Process 33-Dec-138-Dec-13
5Process 4
6Process 510-Nov-13
7Process 68-Dec-13
8Process 7
9
10
11
12Process 11-Nov-13Client B
13Process 25-Nov-13Client B
14Process 510-Nov-13Client B
15Process 11-Dec-13Client A
16Process 33-Dec-13Client A
17Process 38-Dec-13Client C
18Process 68-Dec-13Client A
Sheet1
Cell Formulas
RangeFormula
B12=IFERROR(SMALL($D$2:$F$8,ROW(A1)),"")
C12=IFERROR(INDEX($D$1:$F$1,MATCH(B12,INDEX($D$2:$F$8,MATCH(A12,$A$2:$A$8,0),0),0)),"")
A12{=IF(B12="","",IFERROR(INDEX($A$2:$A$8,SMALL(IF($D$2:$F$8=$B12,ROW($D$2:$F$8)-ROW($D$2)+1),COUNTIF($B$12:B12,B12))),""))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Hi Robert, I have discovered a small problem.

If the same date is find in same data e.g. therefore as per sample data d7=e7, then the same client name is returned find in row 1?

Many thanks for your support.
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,996
Members
452,373
Latest member
TimReeks

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