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: 16

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
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,214,419
Messages
6,119,389
Members
448,891
Latest member
tpierce

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