help with formula

p4nny

Board Regular
Joined
Jan 13, 2015
Messages
246
Hi

Here's what my dataset looks like:

A B C
[TABLE="width: 500"]
<tbody>[TR]
[TD]Area1[/TD]
[TD]Customer[/TD]
[TD]Test1[/TD]
[/TR]
[TR]
[TD]Area2[/TD]
[TD]Customer[/TD]
[TD]Test2[/TD]
[/TR]
[TR]
[TD]Area3[/TD]
[TD]Customer[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Area4[/TD]
[TD]Customer[/TD]
[TD]Test4[/TD]
[/TR]
</tbody>[/TABLE]


In column D, I would like to show Test 1 in D1, Test 2 in D2, Test 4 in D3. Cell D4 would show as a blank

Any cell within column C could be blank.

would appreciate any help.

Many thanks
 
Assuming you have shown us columns A B and C, what is your rational upon which you want to determine what goes into Column D?
 
Upvote 0
In column D, I would like to show Test 1 in D1, Test 2 in D2, Test 4 in D3. Cell D4 would show as a blank

Hi, if I've understood correctly then here is one option, note the helper formula in D1 which is there to aid performance.


Excel 2013/2016
ABCD
13
2Area1CustomerTest1Test1
3Area2CustomerTest2Test2
4Area3CustomerTest4
5Area4CustomerTest4
Sheet1
Cell Formulas
RangeFormula
D1=COUNTIFS($C$2:$C$1000,"?*")
D2=IF(ROWS(D$2:D2)>$D$1,"",INDEX($C$2:$C$1000,AGGREGATE(15,6,(ROW($C$2:$C$1000)-ROW($C$2)+1)/(LEN($C$2:$C$1000)>0),ROWS(D$2:D2))))
 
Upvote 0
Works perfect, thank you. When you have a spare moment, please could you explain how this formula works?
 
Upvote 0
Works perfect, thank you.

Great, that's good to hear.

could you explain how this formula works?

A good place to start would be to limit the ranges of the formula to just a few rows and use the "evaluate formula" option on the "formulas" tab to step through the calculations and follow up with the built in help for each of the functions involved.
 
Upvote 0

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