Sumif formula with validation list reference

da_vide78

Board Regular
Joined
Mar 6, 2007
Messages
73
Hi all.

I cant get my head around how to best craft this formula. I have a doc with 3 tabs for resources on a project.

tab 1 - Summary tab (resource names & this is where the formula and calculations sit) with a validation list with months in
tab 2 - resource Forecasts
tab 3 - resource Actuals

on the summary sheet i want to use a formula that pulls the data from each of the forecast and actual tables (Sumif) BUT only for the month selected in the validation list at the top.

I cant quite get my head to work it out without using loads of IF formulas.

Can someone suggest a simpler way?


Cheers
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Hi,

Try the formula provided and change the ranges accordingly

For my example:
Cell B1 in Sheet1 (tab1 for you) is the validation list with months

Sheet2!A1:K12 is the forecast tab, where months are housed in cells A1:A12 and data in cells B1:K12

Sheet3!A1:K12 is the third tab (actuals), where months are housed in cells A1:A12 and data in cells B1:K12

Formula in Sheet1!B2
=SUM(INDEX(Sheet2!$B$1:$K$12,MATCH($B$1,Sheet2!$A$1:$A$12,0),))+SUM(INDEX(Sheet3!$B$1:$K$12,MATCH($B$1,Sheet3!$A$1:$A$12,0),))

George

Hi all.

I cant get my head around how to best craft this formula. I have a doc with 3 tabs for resources on a project.

tab 1 - Summary tab (resource names & this is where the formula and calculations sit) with a validation list with months in
tab 2 - resource Forecasts
tab 3 - resource Actuals

on the summary sheet i want to use a formula that pulls the data from each of the forecast and actual tables (Sumif) BUT only for the month selected in the validation list at the top.

I cant quite get my head to work it out without using loads of IF formulas.

Can someone suggest a simpler way?


Cheers
 
Upvote 0
Assumed data on Forecast and Actual sheets are summerized by month, then another approach will be :


Excel Workbook
ABC
1Summary
2DateMar
3ResourcesForecastActual
4Resource 139892995
5Resource 246613806
6Resource 330471622
7Resource 426523204
8Resource 539291890
9Resource 631872212
Summary
#VALUE!
 
Upvote 0
Hi all.

I cant get my head around how to best craft this formula. I have a doc with 3 tabs for resources on a project.

tab 1 - Summary tab (resource names & this is where the formula and calculations sit) with a validation list with months in
tab 2 - resource Forecasts
tab 3 - resource Actuals

on the summary sheet i want to use a formula that pulls the data from each of the forecast and actual tables (Sumif) BUT only for the month selected in the validation list at the top.

I cant quite get my head to work it out without using loads of IF formulas.

Can someone suggest a simpler way?


Cheers
Do you have a column of dates or a column of month names?

Where do we find the months and the range to sum?

Need more specific info.
 
Upvote 0
Thanks to folks for your replies so far.


I've managed to sort out the forecast bit, it's now the actuals data i need to pull in.

So at the moment i have a data dump on the 'Actuals Data' tab. The data is a huge list of transactions with 3 key columns.

Column B = Period (1=Apr, 2=May, 3=June, etc (Goes on financial year))
Column J = Resource name (Resource names in my summary table have been made to match these)
Column N = Amount

I need a formula to sum the Amount (N) for a given period (B(Eg. Period 1)), and by Name (J).

I used an IF and SumIF but to no avail..

=IF('Actuals data'!Period="1",SUMIF('Actuals data'!A5:O2000,Sheet1!C8,'Actuals data'!N2:N2000),FALSE)


Can anyone show me where i may be going wrong?
 
Upvote 0

Forum statistics

Threads
1,224,613
Messages
6,179,898
Members
452,948
Latest member
Dupuhini

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