Mac Applications forum

General discussion

Need a little help with a formula

by Morten_Reitoft / November 26, 2010 2:55 AM PST

Dear fellow Numbers Users..

I have a table with zip codes (Column A) and in the same table I have a list of house holds (Column B).

I would like to calculate a sum of house holds based on two fields describing Zip Codes FROM to Zip Codes TO.. I.e. I have a zip code 4000 to 4100. In this range there is maybe 6-7 zip codes with different number of house holds...

I can't figure out how to make that look up and sum.. I have tried to use Sum.if - but apparently I am not clever enough...!

Any suggestions?

Thank in advance,

Morten (From Denmark... reason for my bad English!)

Post a reply
Discussion is locked
You are posting a reply to: Need a little help with a formula
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Need a little help with a formula
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
Re: formula
by Kees_B Forum moderator / November 26, 2010 3:12 AM PST

If you put that table in an Access database, it's a trivial task to make a screen with 2 fields (zip_code from, zip_code_to) and a button executing the following query:
SELECT SUM (households) FROM mytable WHERE zipcode>=zip_code_form AND zipcode<=zip_code_to and put the result in a display field (the technique is to the DSUM-function.

But it can be done in Excel also. tells why you can't use SUMIF (because it uses multiple criteria), but gives DSUM as an alternative. That should work.


Collapse -
Poster appears to be using Numbers and not Excel
by mrmacfixit Forum moderator / November 26, 2010 4:11 AM PST
In reply to: Re: formula

and as far as I can see there is not a DSUM function in Numbers.


Collapse -
Sorry P, My fault totally.
by Kees_B Forum moderator / November 26, 2010 4:16 AM PST

I didn't read the first line. Nor the name of the forum. Just saw the question popup in the real-time listing.

All I saw was sum.if or sumif. And that looked like Excel. Probably it's even available in Office for the Mac. But it's a big step of course to switch to another product just because one thing can't be done.


Popular Forums
Computer Help 49,613 discussions
Computer Newbies 10,349 discussions
Laptops 19,436 discussions
Security 30,426 discussions
TVs & Home Theaters 20,308 discussions
Windows 10 360 discussions
Phones 15,802 discussions
Windows 7 7,351 discussions
Networking & Wireless 14,641 discussions


Big screens for the big game

Still looking for the best TV deals ahead of Sunday's game? Here are our top three big screen picks.