Forum Discussion

DarbyNap's avatar
DarbyNap
Copper Contributor
May 12, 2023

Auto-Populate Data in Cells Based on Category Totals

I'm not great at Excel, so I bet there is an easy way to do this and I'm just not seeing it online anywhere or Googling the correct things!

 

I track my marketing invoices for work in an Excel sheet. I categorize or code each invoice for payment distribution according to my department's budget. I would like to auto-populate data that shows me the total amount spent in each category in real time. Each time I add an invoice, I'd like each category column to populate the total amount of all money for that category so I don't have to sit down and manually add each one together. Please see my example below!

Data Table

DateAmountCategory
5/13/23$10.00Advertising
5/13/23$10.00Social Media
5/13/23$35.00Social Media

 

Category Table

Advertising Total SpendSocial Media Total Spend
$10.00$45.00

 

I want to take the total amount for each category in the Data Table and place it, where it will automatically total itself up for each new addition, in the Category Table.

 

I hope that all makes sense! Thanks in advance!

  • Karma21237's avatar
    Karma21237
    Copper Contributor

    DarbyNap 

    Let me know if I understand your question. You want to find the total amount for each category: Advertising, Social Media, etc. What I would do is use the SUMIF() function. For this function, you would do:

     

    SUMIF(Category Range, What you want to sum. So if you want it to sum Advertising amount you put "Advertising", Amount Range)

     

    Category Range: represents the column that has all of your categories, I would just highlight the entire column: A,B,C,etc.

     

    For the second portion, include the category you want to find the sum of AND PUT IT IN QUOTES. 

     

    Amount Range: Represents the column that has all of your Amounts, I would just highlight the entire column: A,B,C,etc.

     

    • DarbyNap's avatar
      DarbyNap
      Copper Contributor
      Thanks a lot! I think that the SUMIF function might be the solution? But, I'd like to keep the invoices organized by date, which means that the range portion would be staggered. So, I might have three Social Media invoices, and then two Advertising invoices, and then another Social Media invoice. Does this roadblock make sense? I want to send a screen shot of my sheet, but I can't figure out how to do it! The upload image option here isn't as simple as just uploading an image. I hope my response makes sense.
      • Karma21237's avatar
        Karma21237
        Copper Contributor
        So you want to have everything sorted by the date is that correct? Sure! Click Home tab > arrow under Sort & Filter (3rd from most right), and then click Sort Oldest to Newest, or Sort Newest to Oldest.

        Let me know if this helps!

Resources