COUNTIF Solution was too much for Excel. Is this for PowerPivot?

Monsignor

Board Regular
Joined
May 30, 2011
Messages
162
I solved this with 1000 rows using COUNTIF, MATCH and INDEX. But when the user adds 100,000 rows of data (with the potential for 500,000) Excel crashes. Is this better handled in PowerPivot?

The image below is a simplification of what's happening.
The source data is just the 2 columns in A and B.
The desired result is complicated by the interest of choosing only the states of interest, as opposed to rearranging the entirety of the original data.



rearrange-lists.png



Again, I solved this with a solution that seemed pretty elegant. Regular Excel just can handle the magnitude. I've heard that Excel gets cranky around 500,000 rows no matter how simple the data set is. I rarely deal with data sets that large.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
How about just adding a helper columns, called ID, with a formula of ="P"&COUNTIF($A$1:$A2,$A2).

Then pivot the three columns, a standard pivot, state in row labels, ID in column headings, and Person in Values with a Count aggregator.You could even set the value numberformat as "X";;
 
Upvote 0
Very clever and I see potential here. I used a CONCATENATE and COUNTIF to create IDs but not the way you did it.
the next question is how to get the names in the cells. I tried the "X";; and it's just putting Xs in the cells.
 
Upvote 0
I think it will be very difficult if not impossible to get the names in the cells, so my suggestion was to use the names as column headings and just show an X where there was an intersection of state and person.
 
Upvote 0
Please explain what is required.

Or if you've already got a thread that does this (in the normal Excel forum, I guess), please provide a link to it.

thanks
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,970
Messages
6,175,726
Members
452,667
Latest member
vanessavalentino83

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