Fill empty cells (similar to index - match)

jordanbuchan359

New Member
Joined
Jun 15, 2018
Messages
15
Hi,

I'm hoping for a solution to my predicament. I have an external data sheet linked via power query - the table contains names, certifications and identification numbers. My problem is that some of the students names are missing; however, their corresponding ID number has populated in every row... If possible, I'd like to use their ID number to fill in any blanks.

I tried using fill down, but for some reason it wouldn't fill all of the blanks.

Here's an example table:

NameCertificationIdentification
GemmaEnglish1234
GemmaPE1234
GemmaScience1234
GemmaArt1234
Drama1234
History1234
French1234

<tbody>
</tbody>

I tried the following code for a custom column, but was prompted with a Token EOF error for my VAR declaration:

Code:
[COLOR=#000000][FONT=Consolas]VAR Identification = [Identification][/FONT][/COLOR]RETURN
    CALCULATE (
        FIRSTNONBLANK ( [Name], 1 ),
        FILTER (
            ALL,
            [Identification] = Identification
                && [Name] <> BLANK ()
                && [Name] <> ""
        ) [COLOR=#000000][FONT=Consolas]    )[/FONT][/COLOR]

Note - the above code was adapted from the following thread
HTML:
https://community.powerbi.com/t5/Desktop/Fill-empty-cells-based-on-criteria/td-p/101190

Any help would be appreciated.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,214,522
Messages
6,120,022
Members
448,939
Latest member
Leon Leenders

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