Formula to add unique values from range EXCEPT values in another range

kirbyfez

Board Regular
Joined
May 15, 2012
Messages
51
Hi guys,

I have no idea if this is possible but I hope so.

We have a document here at work where we log all our transactions and in the summary field we have lots of formulas based on customers which is all row based.

Issue is that we have certain codes that we do not want to include in the summary sheet and want these not to be added.

For example.

In Sheet called Monday there are customer names in B2:B301. I want the unique values from that range to be listed in B5:B29 in a sheet called summary. but would want it to not add all strings listed in range Z1:Z50 in sheet Admin...

This was very crappy explained but hopefully you get the drift.

At the moment I have a macro that can do it, but it's so slow and wouldnt work in the long run. Also have a formula that takes it over but doesnt exclude the ones that shouldnt be added.

Current formula is: =IF(ROWS(B$5:B5)>$B$1,"",(INDEX(Table1[CUSTOMER/STATUS],MATCH(ROWS(B$5:B5),Table1[Num],0))))
which is then dragged down from B5 to B29

Anyone that can offer some assistance here?
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Forum statistics

Threads
1,214,585
Messages
6,120,390
Members
448,957
Latest member
Hat4Life

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