0

I'm completely new to Excel and am actually using it for the first time for a math paper, so I'm pretty lost to start with.

I have a large spreadsheet of data. It's organized in a table with the headers: country code, country name, date, and total. The dates range from April, 2020 to March, 2021 for 203 countries.

What I'm trying to do is to take the total amounts from each country each day.

I've included some screenshots from my excel spreadsheet:

List of dates from country, with total number for each day to the side

Adding this data isn't so bad, right now I'm using the function =SUMIF(range, criteria (I'm just using ">0")). But when I have so much data to add, this feels really inefficient.

I was wondering if there was a function or if I could somehow create a function, that would let me input a country code and it would sum every row that has that country code? Or something similar that would speed up the process?

I'm sorry if this isn't the best-formatted question, it's my first time asking anything on Stack Overflow and I still new to the expectations from the community. Please let me know any extra information I can provide, ways I can clarify, or anything else.

Thank you to everyone in advance!

2
  • 4
    You can use a pivot table with filters. Apr 13, 2021 at 17:28
  • you can also use SUMIF or SUMIFS
    – Rosetta
    Jul 5, 2021 at 12:53

1 Answer 1

0

Depending on what you want to look at you can either use SUMIF / SUMIFS or a PIVOT table.

For your example above, I would recommend a PIVOT table. You can find further information on PIVOT tables here. Simply drag and drop the values you want to have in each row / column into the respective fields.

In case you then want the result to look nice, you can find information on formatting PIVOT tables here

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.