We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

Final Excel Query :)

shaz77_2
shaz77_2 Posts: 1,881 Forumite
Hi All,

This is my final query and it's bugging me. I have two tabs on my spreadsheet and I want to input some values onto tab 2 from tab 1 (Data).

I need to link two columns from the data tab (Column C which links to a team and column G which related to the achievement of targets (Yes/No). I want to count each of the achievements for each team, at the moment I am doing it manually via the following formula but there must be something faster?

=COUNTIF(Data!G871:G4645,"=Yes")

Thanks in advance

Comments

  • EchoLocation
    EchoLocation Posts: 901 Forumite
    Part of the Furniture 500 Posts Combo Breaker
    Sounds like you need to match two lots of criteria? (Team and Achievment). This can be done with COUNTIFS
  • shaz77_2
    shaz77_2 Posts: 1,881 Forumite
    That's correct so if Team = Liverpool and Achievement = Yes that would be one occurrence for Liverpool. I want to function to add up all for Liverpool and place beside Liverpool Cell and to do the same for other teams.
  • EchoLocation
    EchoLocation Posts: 901 Forumite
    Part of the Furniture 500 Posts Combo Breaker
    =COUNTIFS(Data!C1:C10,"Liverpool",Data!G1:G10,"Yes")

    Of course you can replace the criteria above with the cell references for each team and achievement on Tab 2 then just copy the formula down.
  • jackomdj
    jackomdj Posts: 3,073 Forumite
    Part of the Furniture 1,000 Posts
    I do like sumifs and countifs, makes life a whole lot easier.
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 351.7K Banking & Borrowing
  • 253.4K Reduce Debt & Boost Income
  • 454K Spending & Discounts
  • 244.7K Work, Benefits & Business
  • 600.1K Mortgages, Homes & Bills
  • 177.3K Life & Family
  • 258.4K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.2K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.