Jan 25, 2022

I want to add up a specific word in a column based on what it says in another column.

I want to add up a specific word in column F (Win, Lose or void) depending on what it says in column D (Big Mac or JR) to separate then I’ve attached a screen shot hope it helps.
Locked
Informational notification.
This question is locked and replying has been disabled.
Community content may not be verified or up-to-date. Learn more.
Recommended Answer
Jan 26, 2022
Ok John, no problem.  Take a look at the sheet now, on the new tab with my name on it.

In cell F34 is a single formula. It's a Query that produces this table, called a Pivot Table. 

As you add more data, including more Selectors if applicable, the table will grow automatically. 

Query is a type of database function.  In this case, it returns the count of the items, grouping the count by Selector and by Result. Query supports the Pivot Table function, which returns the result in the familiar down and across style report. Sheets also has a Pivot Table tool, but this is just a Query / PT.

EDIT
The formula is currently drawing from D10:F29. To insure that the formula continues to "see" new data, be sure to insert new rows within that range, or more precisely, "before" the last row of the existing reference. As you insert new rows, the reference will expand: D10:F30, then F31 etc. But if you insert rows on the sheet outside the existing reference, the formula won't know about it. 

Best
Lance

When you've received a response that answers your question, please observe these forum courtesies;
 • Leave your demo sheet shared as part of this solution's archive,
 • Click Recommend on the post that best addressed your question, and
 • Post again soon!
Last edited Jan 26, 2022
Original Poster John Izzard marked this as an answer
Helpful?
All Replies (5)
Jan 25, 2022
Hello John izzard,
 
I can be more accurate on a shared sample sheet. Also, you have Lose, and Place - but there is no samples for "Win" or "Void" in the data. 
 
For now, delete all the labels and anything else in the range F34 to I and place this formula in F34:
=Query(D10:F29, "Select D, Count(D) Where D is not null Group by D Pivot F",0)
 
The formula uses US syntax. I can't tell from  a screenshot what locale you're working in. 
 
Stock paragraph:
If you'd like help entered directly on a Google Sheet, from me or dozens of other forum contributors, please create a sample sheet we can all work on. This Blank Sheet Maker will help you share safely. Learn More: Google Product Experts' TIPS FOR POSTING   
 
Best
Lance
 
When you've received a response that answers your question, please observe these forum courtesies;
 • Leave your demo sheet shared as part of this solution's archive,
 • Click Recommend on the post that best addressed your question, and
 • Post again soon!
Last edited Jan 25, 2022
Jan 26, 2022
Thank you Lance I’ll be honest that gone a bit over my head, here is a test sheet that you should be able to edit. https://docs.google.com/spreadsheets/d/1O-bAxuTQgNXiBmk01Dt2TJTHcdSfnstVqzWPoWLJoXY/edit

Will it continue to add up as it is a ongoing spreadsheet 

Thanks

John
Recommended Answer
Jan 26, 2022
Ok John, no problem.  Take a look at the sheet now, on the new tab with my name on it.

In cell F34 is a single formula. It's a Query that produces this table, called a Pivot Table. 

As you add more data, including more Selectors if applicable, the table will grow automatically. 

Query is a type of database function.  In this case, it returns the count of the items, grouping the count by Selector and by Result. Query supports the Pivot Table function, which returns the result in the familiar down and across style report. Sheets also has a Pivot Table tool, but this is just a Query / PT.

EDIT
The formula is currently drawing from D10:F29. To insure that the formula continues to "see" new data, be sure to insert new rows within that range, or more precisely, "before" the last row of the existing reference. As you insert new rows, the reference will expand: D10:F30, then F31 etc. But if you insert rows on the sheet outside the existing reference, the formula won't know about it. 

Best
Lance

When you've received a response that answers your question, please observe these forum courtesies;
 • Leave your demo sheet shared as part of this solution's archive,
 • Click Recommend on the post that best addressed your question, and
 • Post again soon!
Last edited Jan 26, 2022
Original Poster John Izzard marked this as an answer
Jan 26, 2022
Thank you very much Lancse this is perfect 👍🏼 

Cheers

John
Jan 26, 2022
Happy to hear it John.

Post again soon,
Lance
false
12081823560995073871
true
Search Help Center
true
true
true
true
true
35
false
false
Search
Clear search
Close search
Main menu