Indexing Non-Blank Values for Specific Matches

Orionsic

New Member
Joined
Jul 6, 2016
Messages
9
Hello, I have hundreds-of-thousands of rows, which most of them have missing values (column 2). Based on a primary key (column 1), I can assume that the missing values can be imputed with values associated with that key. An example would be necessary.

[TABLE="width: 500"]
<tbody>[TR]
[TD]Primary Key[/TD]
[TD]Date[/TD]
[TD]Date.Impute[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]""[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]""[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]02/02/2017[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]""[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]02/03/2017[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]""[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12345[/TD]
[TD]01/01/2017[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12345[/TD]
[TD]""[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

All orders "123" date are "02/02/2017". All orders "1234" date are "02/03/2017", etc..

Using or not using index match, how can I fill in all of the missing fields of the 2nd column in the 3rd column?

Any help would be greatly appreciated. Thank you.
 
Last edited:

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
In C2 control+shift+enter, not just enter, and copy down:

=IF(ISNUMBER($B2),$B2,INDEX($B$2:$B$9,MATCH(1,IF($A$2:$A$9=$A2,IF(ISNUMBER($B$2:$B$9),1)),0)))
 
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,190
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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