Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

sumifs

ResolvedVersion 2013

Chris has attended:
Excel Advanced course
Excel VBA Intro Intermediate course
Excel Intermediate course
Excel Dashboards for Business Intelligence course
Advanced Excel Dashboards course
Excel PowerPivot course
Excel Advanced - Formulas & Functions course
Excel Charting course

SUMIFS

Having trouble seeing why this is still brining a value of 0:

=SUMIFS(tbl_Saleslog[12GP],tbl_Saleslog[AccntMan],K3,tbl_Saleslog[Month],$E$10)/SUMIFS(tbl_Targets[MonthlyTarget],tbl_Targets[AccntMan],K3,tbl_Targets[Month],$E$10)

RE: SUMIFS

Hi Chris,

Thank you for your question. I can't spot anything wrong with the formula's structure. It might be helpful to send us an Excel file with some sample data to forum@stl-training.co.uk, then we might spot the issue.

Kind regards
Marius Barnard
STL


RE: SUMIFS

Hi Chris,

I have had a close look at your file. There is nothing wrong with the Sumifs. They return the right result.

You only have 2018 data in the column tbl_Saleslog[Raise Date YE]. You only have records for Ian, Luke and Mark in the Data sheet.

I changed the Combo box in the helper sheet to YE 2018 and then I tested L4 (Ian). The sum of the Data sheet, where the criteria in the sumifs are true 31903.13 and the sum of the sumifs in the Target sheet is 2159280. The result in L4 1.48% is the right result.

I just spotted, where you have a problem. In the second Sumifs you reference the Annual target not the Monthly target.

=SUMIFS(tbl_Saleslog[12 GP],tbl_Saleslog[AccntMan],L3,tbl_Saleslog[Raise Date YE],$E$2)/SUMIFS(tbl_Targets[Annual Target],tbl_Targets[AccntMan],L3,tbl_Targets[Year],$E$2)

Change it to:

=SUMIFS(tbl_Saleslog[12 GP],tbl_Saleslog[AccntMan],L3,tbl_Saleslog[Raise Date YE],$E$2)/SUMIFS(tbl_Targets[Monthly Target],tbl_Targets[AccntMan],L3,tbl_Targets[Year],$E$2)

I hope this make sense and you will get a nice report.

Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

RE: SUMIFS

Thank you Jens, this has worked and although giving me odd figures/results, i think its the data that needs looking at now, for now the theory/ formula works!

All the best

Chris

Mon 6 Nov 2017: Automatically marked as resolved.

Excel tip:

Use RANDBETWEEN to generate random numbers

There may be occassions where you need to generate random numbers in your spreadsheet. Use the RANDBETWEEN function to generate random numbers between two values that you specify.

The function looks like this:

=randbetween(LOW,HIGH)

where LOW is the lowest number you want generated; and HIGH is the highest number you want generated.

This formula will work with both positive and negative LOWs and HIGHs. Also it will only generate integer numbers unless forced to do otherwise by the following:

=randbetween(LOW*10^PRECISION,
HIGH*10^PRECISION)/(10^PRECISION).

where PRECISION represents the levels of decimal precision needed (i.e. if you need numbers with one decimal place, PRECISION would be 1; 2 for two decimal places and so on).

One final note, if the RANDBETWEEN formula does not work in your spreadsheet or returns a "#NAME" error, you need to install the Analysis Toolpak Add-In. You will need to press F2 then Enter following the installation.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.