Problem Summing in an Array

Rachelplatt14

New Member
Joined
Sep 28, 2011
Messages
1
Hello,

I imagine I'm making a pretty basic mistake, I'm completely self-taught via Google/various forums so my Excel knowledge is less than extensive.

I am using an array to sum the amount of work (in hours) completed in any particular week. There are four different types of work listed, each with a set amount of time allocated for completion. The array is checking for the correct date range (blue portion of formula) and then summing up the total time taken (red portion of formula)

=SUM(IF('UAP GAPS FOR SEARCHES'!$AG$2:$AG$4341>=0,IF('UAP GAPS FOR SEARCHES'!$AE$2:$AE$4341=B14,1,0),0))

The problem that I'm having is that the formula is only counting the whole numbers - nothing after the decimal place. For example it is summing;

1.25
1.25
2.75
2.75

as 6, rather than 8.

How can I improve my formula so that it sums correctly?

Many thanks in advance for all help given.

Rachel :)
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Hello,

I imagine I'm making a pretty basic mistake, I'm completely self-taught via Google/various forums so my Excel knowledge is less than extensive.

I am using an array to sum the amount of work (in hours) completed in any particular week. There are four different types of work listed, each with a set amount of time allocated for completion. The array is checking for the correct date range (blue portion of formula) and then summing up the total time taken (red portion of formula)

=SUM(IF('UAP GAPS FOR SEARCHES'!$AG$2:$AG$4341>=0,IF('UAP GAPS FOR SEARCHES'!$AE$2:$AE$4341=B14,1,0),0))

The problem that I'm having is that the formula is only counting the whole numbers - nothing after the decimal place. For example it is summing;

1.25
1.25
2.75
2.75

as 6, rather than 8.

How can I improve my formula so that it sums correctly?

Many thanks in advance for all help given.

Rachel :)

Control+shift+enter, not just enter:
Rich (BB code):
=SUM(
   IF('UAP GAPS FOR SEARCHES'!$AE$2:$AE$4341=B14,
   IF('UAP GAPS FOR SEARCHES'!$AG$2:$AG$4341>=0,
    'UAP GAPS FOR SEARCHES'!$AG$2:$AG$4341)))


On a 2007 system or later:
Rich (BB code):
=SUMIFS(
  'UAP GAPS FOR SEARCHES'!$AG$2:$AG$4341,
  'UAP GAPS FOR SEARCHES'!$AE$2:$AE$4341,B14,
  'UAP GAPS FOR SEARCHES'!$AG$2:$AG$4341,">=0")

 
Upvote 0

Forum statistics

Threads
1,216,200
Messages
6,129,468
Members
449,511
Latest member
OttosArmy

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