Jump to content
The mkiv Supra Owners Club

Excel Help


mawby

Recommended Posts

I'm trying to populate a section of a spreadsheet with a count of the number of rows in two columns which meet a given criteria. The spreadsheet would be like this...

 

No code has to be inserted here.

 

And the result wanted is this...

 

No code has to be inserted here.

 

Where the values in the cells are a simple count of the number of rows in column A which matches the column heading (100, 200 etc) and where the first three characters of column B also matches the row labels (HUN, TIG)

 

I thought the COUNTIF statement might do it but I can't see how to create a criteria which examines the values of two cells on the same row. Any ideas?

Link to comment
Share on other sites

I would use a pivot and add an extra field on the end which uses the left function to pick out the HUN bit or TIG bit from the code

 

See attached

 

Actually ignore me, this is exactly the same as Mr Ralph mans example ha ha

 

> read all post and look at all attachments before posting

This is the way I would do it aswell though

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. You might also be interested in our Guidelines, Privacy Policy and Terms of Use.