Calculating figures based on dropdown selection help

sjohnson77

New Member
Joined
Apr 17, 2021
Messages
11
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi Everyone,

I am having real problems calculating values based on certain drop down selections I make.

For example, for my business I am trying to calculate the spend per year by selecting a drop down and choosing the year I want to be calculated. I already have the spend data for all the financial periods within a year, but I need the spreadsheet to recognize the selection on my dropdown menu and to automatically calculate the values for me.

I have attached a screenshot with some fake data to help as a visualization.

Any help would be greatly appreciated!

Kind regards
 

Attachments

  • Spend.JPG
    Spend.JPG
    176.6 KB · Views: 29

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
using XL2BB (see menu or my signature for details )or put the file on a recognised what i would call trusted share , like dropbox, onedrive , mega, google sheets

Is the year TEXT ?
SUMIF() should work -
SUMIF($C$2:$C$1000, H2, $E$2:$E$1000)

But if you have dates in the cell , then you may need to convert to use YEAR()
But whats in cell C - a date or TEXT, and what date - so are these all different dates and formatted to just show year
Whats in cell H - - a date or TEXT so is 2017 - actual always 1st Jan 2017 and formatted to just show year
 
Upvote 0
Solution
Thank you for your help etaf! You guessed correctly, the years were text only so your formula worked perfectly :)

Appreciate the fantastic help and quick response :)
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,191
Members
452,616
Latest member
intern444

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top