Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
dd dd is offline
external usenet poster
 
Posts: 95
Default SUMIF Problem

I'm having problems with the SUMIF function

If I use
=SUMIF('Page 1'!$E$4:$E$260,"=A2",'Page 1'!$H$4:$H$260) I get a zero result

If I use
=SUMIF('Page 1'!$E$4:$E$260,A2,'Page 1'!$H$4:$H$260) I get an accurate
result

For my final function I want to use
=SUMIF('Page 1'!$E$4:$E$260,=A2,'Page 1'!$H$4:$H$260)-SUMIF('Page
1'!$F$4:$F$260,=A3,'Page 1'!$H$4:$H$260)
....to get the sum of days within a date range. A, E and F are all date
formatted Columns. H is a number format (days).

I also have 100 rows, so it would be good if I am able to drag =A2, so that
it updates to =A3,= A4,= A5, etc., on the cells below.

Please help!

Dylan
Scotland


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default SUMIF Problem



"dd" wrote:
If I use
=SUMIF('Page 1'!$E$4:$E$260,"=A2",'Page 1'!$H$4:$H$260) I get a zero result


Thats trying to match a cell with "=A2" in it, rather than looking at the
value of A2. Try
=SUMIF('Page 1'!$E$4:$E$260,"="&A2,'Page 1'!$H$4:$H$260)

But i'm unsure if sumif can worth with inexact matches.

=SUMPRODUCT(--('Page 1'!$E$4:$E$260=A2),('Page 1'!$H$4:$H$260))

That should work though, and one other thing, I think its = rather than =.
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,886
Default SUMIF Problem

Hi

It should be = not =
For the second part, wanting the comparison cell to increase as you copy
down, use
,"="&A2,

=SUMIF('Page 1'!$E$4:$E$260,"="&A2,'Page 1'!$H$4:$H$260)

--
Regards

Roger Govier


"dd" <dd.dd wrote in message
...
I'm having problems with the SUMIF function

If I use
=SUMIF('Page 1'!$E$4:$E$260,"=A2",'Page 1'!$H$4:$H$260) I get a zero
result

If I use
=SUMIF('Page 1'!$E$4:$E$260,A2,'Page 1'!$H$4:$H$260) I get an accurate
result

For my final function I want to use
=SUMIF('Page 1'!$E$4:$E$260,=A2,'Page 1'!$H$4:$H$260)-SUMIF('Page
1'!$F$4:$F$260,=A3,'Page 1'!$H$4:$H$260)
...to get the sum of days within a date range. A, E and F are all date
formatted Columns. H is a number format (days).

I also have 100 rows, so it would be good if I am able to drag =A2,
so that
it updates to =A3,= A4,= A5, etc., on the cells below.

Please help!

Dylan
Scotland




  #4   Report Post  
Posted to microsoft.public.excel.programming
dd dd is offline
external usenet poster
 
Posts: 95
Default SUMIF Problem

Many thanks both, especially for the super fast response.

Dylan
Scotland

"Roger Govier" wrote in message
...
Hi

It should be = not =
For the second part, wanting the comparison cell to increase as you copy
down, use
,"="&A2,

=SUMIF('Page 1'!$E$4:$E$260,"="&A2,'Page 1'!$H$4:$H$260)

--
Regards

Roger Govier


"dd" <dd.dd wrote in message
...
I'm having problems with the SUMIF function

If I use
=SUMIF('Page 1'!$E$4:$E$260,"=A2",'Page 1'!$H$4:$H$260) I get a zero
result

If I use
=SUMIF('Page 1'!$E$4:$E$260,A2,'Page 1'!$H$4:$H$260) I get an accurate
result

For my final function I want to use
=SUMIF('Page 1'!$E$4:$E$260,=A2,'Page 1'!$H$4:$H$260)-SUMIF('Page
1'!$F$4:$F$260,=A3,'Page 1'!$H$4:$H$260)
...to get the sum of days within a date range. A, E and F are all date
formatted Columns. H is a number format (days).

I also have 100 rows, so it would be good if I am able to drag =A2,
so that
it updates to =A3,= A4,= A5, etc., on the cells below.

Please help!

Dylan
Scotland





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SUMIF problem Hoyos Excel Discussion (Misc queries) 6 September 6th 07 08:46 AM
SumIF problem Emile Excel Worksheet Functions 4 October 15th 06 04:02 AM
SUMIF Problem Mohammed Zenuwah Excel Worksheet Functions 5 June 28th 05 09:08 AM
SUMIF problem Nadia Excel Worksheet Functions 3 January 21st 05 07:12 PM
SUMIF problem Hodge Excel Worksheet Functions 1 November 11th 04 11:48 AM


All times are GMT +1. The time now is 12:57 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"