• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Extracting Data based on multiple criteria

May1

New Member
Hi,

Below is my data source (here there are 4 rows and 4 columns but actually the data has 225k rows and 77 columns) :

DealCommentFXF XF/XFOREX
24754704​
FXHitNoHitNoHitNoHit
24754784​
F XNoHitHitNoHitNoHit
24753342​
F/XNoHitNoHitHitNoHit
24753458​
USDNoHitNoHitNoHitNoHit

I want results (preferably in a pivot table) that shows me this:

HitNoHit
FX
1​
3​
F X
1​
3​
F/X
1​
3​
FOREX
0​
4​

Please note - I cannot transpose the rows to columns as number of rows is greater than 225k.

Please help..
 
Power Query and Pivot in attached
1687965319234.png
 

Attachments

  • Chandoo53963.xlsx
    18.6 KB · Views: 10
Last edited:
Formula way,

In K2, formula copied across right and down:

=COUNTIF(OFFSET(INDEX($C$2:$F$2,MATCH($J2,$C$1:$F$1,0)),,,230000),K$1)

1687969862132.png
 
Back
Top