Combining Formulas

Marhier

Board Regular
Joined
Feb 21, 2017
Messages
128
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hey everyone.
After a bit of help.

I've got three formula, all of which work perfectly on their own, in separate cells.

Excel Formula:
=IFERROR(SORT(UNIQUE(FILTER(PurchaseOrderTable[Category],PurchaseOrderTable[Category]<>""))),"")
Excel Formula:
=IFERROR(SORT(UNIQUE(FILTER(SiteReqTable[Category],SiteReqTable[Category]<>""))),"")
Excel Formula:
=IFERROR(SORT(UNIQUE(FILTER(HireOrderTable[Item Category],HireOrderTable[Item Category]<>""))),"")

Is there a way I can combine all these formulas into one formula, which will give me one, sorted, unique list of results?

All support is greatly appreciated.
Thank you.
Regards,
Marhier.
 
Last edited:

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
It would be helpful if you could provide some sample data using the xl2bb add in (link below). If you cannot use that please post as a table, not an image.
Otherwise the each forum member that wants to help needs to recreate the data which is time consuming and can cause have errors in assumption of your data layout.

Thanks in advance.
 
Upvote 0
Maybe a VSTACK:

Excel Formula:
=SORT(VSTACK(UNIQUE(FILTER(PurchaseOrderTable[Category], PurchaseOrderTable[Category]<>"")),UNIQUE(FILTER(SiteReqTable[Category],SiteReqTable[Category]<>"")),UNIQUE(FILTER(HireOrderTable[Item Category], HireOrderTable[Item Category]<>""))))

But this is just a guess, and as @awoohaw mentioned, additional information will be much more helpful.
 
Upvote 0
Solution
Maybe a VSTACK:

Excel Formula:
=SORT(VSTACK(UNIQUE(FILTER(PurchaseOrderTable[Category], PurchaseOrderTable[Category]<>"")),UNIQUE(FILTER(SiteReqTable[Category],SiteReqTable[Category]<>"")),UNIQUE(FILTER(HireOrderTable[Item Category], HireOrderTable[Item Category]<>""))))

But this is just a guess, and as @awoohaw mentioned, additional information will be much more helpful.

This worked.
Thank you!
 
Upvote 0
The only thing I had to add was a UNIQUE at the beginning to then make the final list remove any duplicates:

Excel Formula:
=IFERROR(SORT(UNIQUE(VSTACK(UNIQUE(FILTER(PurchaseOrderTable[Category],PurchaseOrderTable[Category]<>"")),UNIQUE(FILTER(SiteReqTable[Category],SiteReqTable[Category]<>"")),UNIQUE(FILTER(HireOrderTable[Item Category],HireOrderTable[Item Category]<>""))))),"")

I can't thank you enough.
Have a great day, everyone.
 
Upvote 0

Forum statistics

Threads
1,215,071
Messages
6,122,963
Members
449,094
Latest member
Anshu121

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