linacherfas
New Member
- Joined
- Jan 26, 2022
- Messages
- 2
- Office Version
- 2016
- Platform
- MacOS
Hi everyone,
I'm trying to pull data from one column in a table into another tab so that I can create a visualization for a dynamic dashboard. The column includes state and city abbreviations, sometimes several jurisdictions in the same cell separated by commas, and many instances of "N/A". See the screenshot of the pivot table that summarizes what's in the column. I'm trying to extract the data so that I have a count of each individual jurisdiction (state or city, doesn't matter) separately, without the commas as in the pivot table.
When I tried doing COUNTIF formulas for each jurisdiction abbreviation separately, it doesn't capture the ones in the lists - for example, it returns 0 for HI because HI only appears as part of "LA, HI, PA". When I tried COUNTIFS for "HI" and "HI," it returned 0. Not sure why. Then I tried this version with wildcards: =COUNTIF(Table1[[#All],[Non-Consultant P2P Jurisdiction]],"*"&"HI"&"*") but it incorrectly returns 2 for Hawaii, because it counts HI and also the PHI (which is Philadelphia). I've tried several versions of the wildcard formula, leaving out the wildcard on one or the other side of the jurisdiction name, but I end up with incorrect counts for some jurisdictions however I do it.
I also tried combining COUNTIF with ISNUMBER and SEARCH, but that got me no results.
Please help?!! Huge thank you in advance!
Best wishes,
-lina
I'm trying to pull data from one column in a table into another tab so that I can create a visualization for a dynamic dashboard. The column includes state and city abbreviations, sometimes several jurisdictions in the same cell separated by commas, and many instances of "N/A". See the screenshot of the pivot table that summarizes what's in the column. I'm trying to extract the data so that I have a count of each individual jurisdiction (state or city, doesn't matter) separately, without the commas as in the pivot table.
When I tried doing COUNTIF formulas for each jurisdiction abbreviation separately, it doesn't capture the ones in the lists - for example, it returns 0 for HI because HI only appears as part of "LA, HI, PA". When I tried COUNTIFS for "HI" and "HI," it returned 0. Not sure why. Then I tried this version with wildcards: =COUNTIF(Table1[[#All],[Non-Consultant P2P Jurisdiction]],"*"&"HI"&"*") but it incorrectly returns 2 for Hawaii, because it counts HI and also the PHI (which is Philadelphia). I've tried several versions of the wildcard formula, leaving out the wildcard on one or the other side of the jurisdiction name, but I end up with incorrect counts for some jurisdictions however I do it.
I also tried combining COUNTIF with ISNUMBER and SEARCH, but that got me no results.
Please help?!! Huge thank you in advance!
Best wishes,
-lina