Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / March 2008

Tip: Looking for answers? Try searching our database.

SUMIF PROBLEM

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Malcolm Austin - 21 Mar 2008 13:53 GMT
My formula is:-  =SUMIF('INPUT PAGE - FLYING TIMES'!$D$4:$D$23,D3,'INPUT
PAGE - FLYING TIMES'!$H$4:$J$23)

D4 to D23 is the part of my data which I'm looking for the answer in D3
(aeroplane type).
H4:J23 is where I looking for a numerical figures (flying time in minutes)

This is working well for the first column, (H) but is not taking note of the
2nd and 3rd column.

1/  Am I using the correct formula to pick data from 3 columns?
2/  If correct what should I do to the formula to make it work across all 3?
3/  If not, which one should I go for?

Malcolm
Ron Coderre - 21 Mar 2008 14:01 GMT
You have a couple options:

Multiple SUMIF's...
=SUMIF('INPUT PAGE - FLYING TIMES'!$D$4:$D$23,D3
,'INPUT PAGE - FLYING TIMES'!$H$4:$H$23)+
SUMIF('INPUT PAGE - FLYING TIMES'!$D$4:$D$23,D3
,'INPUT PAGE - FLYING TIMES'!$H$4:$I$23)+
SUMIF('INPUT PAGE - FLYING TIMES'!$D$4:$D$23,D3
,'INPUT PAGE - FLYING TIMES'!$H$4:$J$23)

or...
=SUMPRODUCT(('INPUT PAGE - FLYING TIMES'!$D$4:$D$23=
D3)*'INPUT PAGE - FLYING TIMES'!$H$4:$J$23)

Does that help?
Post back if you have more questions.
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

> My formula is:-  =SUMIF('INPUT PAGE - FLYING TIMES'!$D$4:$D$23,D3,'INPUT
> PAGE - FLYING TIMES'!$H$4:$J$23)
[quoted text clipped - 12 lines]
>
> Malcolm
Ron Coderre - 21 Mar 2008 14:04 GMT
Darn! Sloppy editing of the range refs in the multiple SUMIF's..
It should be:
=SUMIF('INPUT PAGE - FLYING TIMES'!$D$4:$D$23,D3
,'INPUT PAGE - FLYING TIMES'!$H$4:$H$23)+
SUMIF('INPUT PAGE - FLYING TIMES'!$D$4:$D$23,D3
,'INPUT PAGE - FLYING TIMES'!$I$4:$I$23)+
SUMIF('INPUT PAGE - FLYING TIMES'!$D$4:$D$23,D3
,'INPUT PAGE - FLYING TIMES'!$J$4:$J$23)

Apologies.

(I'd go with the SUMPRODUCT approach, though)

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

> You have a couple options:
>
[quoted text clipped - 37 lines]
>>
>> Malcolm
Malcolm Austin - 22 Mar 2008 13:35 GMT
HI Ron,
               got 5 mins off from grandkids to look at computer.  I'll
revert on this when
they've gone to bed!

Malcolm...

> Darn! Sloppy editing of the range refs in the multiple SUMIF's..
> It should be:
[quoted text clipped - 57 lines]
>>>
>>> Malcolm
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.