Multiple Reports from single static report based on column value

Mydako

New Member
Joined
Apr 19, 2018
Messages
26
Hello,
Either it’s Monday morning, or I’m overestimating my abilities, or both.

I’m trying to figure out a way to generate multiple reports automatically based off a static report and the values in it.

We get a report with hundreds of thousands of items on it, and they’re all grouped together. What I want is the ability to take this report, and then automatically on other tabs make reports categorized by a cell value, in this case the code that tells us if an item is discontinued, out of stock, in stock, etc.

In my mind my initial thought was the inelegant =if(CodeCell=Discontinued, First Cell in that Row,””) and repeat that for the entire row. It’s not elegant, and it leaves blank spots in the new report when the item lacks that code.

It doesn’t strike me as too hard, and I’ve done a lot more complicated, but for some reason my brain is getting stuck on this.


PODateItemNameQtyPriceCode
1232019/10/07456Stuff3$5In stock
1242019/10/07457Morestuff4$10Discontinued
1252019/10/07458Potato10$13Out of Stock
1262019/10/07457Morestuff6$10Discontinued

<tbody>
</tbody>

For instance with the above I'd like to generate a Discontinued report that would return the below

PODateItemNameQtyPriceCode

<tbody>
</tbody>
1242019/10/07457Morestuff4$10Discontinued

<tbody>
</tbody>
1262019/10/07457Morestuff6$10Discontinued

<tbody>
</tbody>

What I currently have is
=if(G2="Discontinued,A2,"") | =if(G2="Discontinued,B2,"") | =if(G2="Discontinued,C2,"") and so on in a row.

I feel like it's too early, cause I'm sure I've done similar and this shouldn't be a problem, but I can't get this to work.

While I know filtering and copy and pasting would work these reports are usually 500-1000 rows, and are done daily. So if I could automate instead of filter/copy/paste it could save a lot of time.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Ah sorry, forgot to mention.

Our systems are on Citrix (ugh) which means add-ons, and VBA don't work, among other things. This needs to be in formulas for basic Excel out of the box, so to speak.
 
Upvote 0
so there is build-in Power Query aka Get&Transform
if it doesn't work you can use Pivot Tables, each PT for each Code
or one Pivot Table with Code filter
 
Last edited:
Upvote 0

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