Creating 2 lists by extracting unique values but values in each list are based off each other

Zacharygolf

New Member
Joined
Jul 15, 2013
Messages
4
Title may be a little confusing, I apologize. I have expense reports that contain multiple cost codes, job numbers, and expenses. What I want are 3 columns: a list of cost codes, a list of job numbers, and a $ total. I also want this list to e self propagating, meaning that I do not have to edit the formulas for they to work.

CostJob #Acct #Acct #Job #Total
$1.00123789789123$1.00
$3.00123910789456$12.00
$5.00456789910123$3.00
$7.00456789910456$9.00
$9.00456910

<colgroup><col width="64" span="7" style="width:48pt"> </colgroup><tbody>
</tbody>

On the left is my test data, on the right is what I want to appear. So far I am able to extract the unique values and make them into a list using this formula(in cell A9):

{=INDEX($C$2:$C$6,MATCH(0,COUNTIF($A$8:A8,$C$2:$C$6),0))}

789
910

<colgroup><col width="64" style="width:48pt"> </colgroup><tbody>
</tbody>

And I figured that using COUNTIFS( would do the trick but I can't get the formula to work properly. Any Help?
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,214,945
Messages
6,122,393
Members
449,081
Latest member
JAMES KECULAH

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