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
    Part of the Furniture 500 Posts Combo Breaker
    Forumite
    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
    Part of the Furniture 500 Posts Combo Breaker
    Forumite
    =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
    Part of the Furniture 1,000 Posts
    Forumite
    I do like sumifs and countifs, makes life a whole lot easier.
This discussion has been closed.
★ ★ ★ Meet your Ambassadors

Categories

  • All Categories
  • 356K Banking & Borrowing
  • 255K Reduce Debt & Boost Income
  • 456.3K Spending & Discounts
  • 248.5K Work, Benefits & Business
  • 606.2K Mortgages, Homes & Bills
  • 179.1K Life & Family
  • 264.1K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.2K Discuss & Feedback
  • 37.7K Read-Only Boards
Quick Search

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.