Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Sues
 
Posts: n/a
Default sumif to add data in multiple sheets

I am trying to use sumif to form a summary page as a Year to date from a
summary on each of twelve month worksheets which have a sumary using the
sumif on each page. This is my formula
=SUMIF(Jul:Jun!B54:F58,A4,Jul:Jun!D54:D58)
it just comes up with #VALUE. What is wrong with the formula.
I am using the same formula on each of the individual months sheets and it
works.
  #2   Report Post  
Max
 
Posts: n/a
Default

=SUMIF(Jul:Jun!B54:F58,A4,Jul:Jun!D54:D58)

There's a typo in the range "Jul:Jun!B54:F58"
It should be a single col reference, not multiple

Try either:
=SUMIF(Jul:Jun!B54:B58,A4,Jul:Jun!D54:D58)
=SUMIF(Jul:Jun!F54:F58,A4,Jul:Jun!D54:D58)

depending on which col the data to match with A4 resides,
in col B or in col F

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Sues" wrote in message
...
I am trying to use sumif to form a summary page as a Year to date from a
summary on each of twelve month worksheets which have a sumary using the
sumif on each page. This is my formula
=SUMIF(Jul:Jun!B54:F58,A4,Jul:Jun!D54:D58)
it just comes up with #VALUE. What is wrong with the formula.
I am using the same formula on each of the individual months sheets and it
works.



  #3   Report Post  
Harlan Grove
 
Posts: n/a
Default

"Max" wrote...
=SUMIF(Jul:Jun!B54:F58,A4,Jul:Jun!D54:D58)


There's a typo in the range "Jul:Jun!B54:F58"
It should be a single col reference, not multiple

Try either:
=SUMIF(Jul:Jun!B54:B58,A4,Jul:Jun!D54:D58)
=SUMIF(Jul:Jun!F54:F58,A4,Jul:Jun!D54:D58)

depending on which col the data to match with A4 resides,
in col B or in col F

....

Have you tried these formulas? Obviously not. SUMIF doesn't accept 3D
references as either first or third arguments. Those arguments must be
*range* references, and range references are *always* restricted to a single
worksheet.

This has been discussed many times before. You must have missed those
threads. Here's link for reference.

http://groups.google.com/groups?thre...40cableone.net

Next time test before posting.


  #4   Report Post  
Max
 
Posts: n/a
Default

"Harlan Grove" wrote
.....
Have you tried these formulas? Obviously not.


Yes, my mistake in this instance (usually I do test)
I missed out the "3D" part of it in the refs

Next time test before posting.

Roger, 10-4 !
And thanks for the refresher link ..
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----


  #5   Report Post  
Max
 
Posts: n/a
Default

Here's a 2nd try (apologies for the earlier mistake) ..

In your summary sheet
-------------------------------
Suppose you list in B3:C3
the names of the sheets: Jun, Jul
you could try say,

In B4:

=SUMPRODUCT(SUMIF(INDIRECT("'"&$B$3:$C$3&"'!B54:B5 8"),$A4,INDIRECT("'"&$B$3:
$C$3&"'!D54:D58")))

The above will return the same results
as doing a total of the 2 SUMIFs
(from the sheets: Jun and Jul)

=SUMIF(Jun!B54:B58,$A4,Jun!D54:D58)+SUMIF(Jul!B54: B58,$A4,Jul!D54:D58)

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Sues" wrote in message
...
I am trying to use sumif to form a summary page as a Year to date from a
summary on each of twelve month worksheets which have a sumary using the
sumif on each page. This is my formula
=SUMIF(Jul:Jun!B54:F58,A4,Jul:Jun!D54:D58)
it just comes up with #VALUE. What is wrong with the formula.
I am using the same formula on each of the individual months sheets and it
works.



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
populating sheets based on data from parent sheets seve Excel Discussion (Misc queries) 2 January 15th 05 09:22 PM
multiple or changing colours in a data table on an excel chart fo. Kerri Buxton Charts and Charting in Excel 2 December 23rd 04 07:39 PM
Multiple sheets selected twa14 Excel Discussion (Misc queries) 2 December 21st 04 11:15 AM
linking multiple sheets to a summary sheet greg g Excel Discussion (Misc queries) 1 December 16th 04 07:43 AM
How do I plot data in Excel that is captured on separate sheets; . krwegner Excel Discussion (Misc queries) 0 November 30th 04 05:43 PM


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

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

About Us

"It's about Microsoft Excel"