Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

sumif or sumifs










US$ 1,00,000.00

Cash

Groceries

Home

US$ 5,000.00

US$ 95,000.00

Cash

Gasoline

Auto

US$ 360.00

US$ 94,640.00

Cash

Cinema

Entertainment

US$ 375.00

US$ 94,265.00

Cash

Flowers

Gifts

US$ 180.00

US$ 94,085.00

Credit Card

Internet

Mob and Net

US$ 1,500.00

US$ 92,585.00

Credit Card

Clothes

Mob and Net

US$ 500.00

US$ 92,085.00

Credit Card

Movie Rentals

Mob and Net

US$ 100.00

US$ 91,985.00

Debit Card

Pro Shop

Golf

US$ 200.00

US$ 91,785.00

Debit Card

Restaurant

Food

US$ 400.00

US$ 91,385.00

Cheque

Groceries

Home

US$ 750.00

US$ 90,635.00

Cheque

Subsciption

Home

US$ 1,500.00

US$ 89,135.00

Cash

Equipment

Golf

US$ 120.00

US$ 89,015.00





Income and Expenses

January




Cash Expenses





Credit Card Expenses





Cheque Expenses





Debit Card expenses





Savings





In the cells below (marked red ) which formula adds up data from the first column(A) and the fourth (D) ie to say Cash Expenses cell is to show = sumif Column A is Cash then add up all cash expenditure in Column D, and display?

Regards

Singh

(PS the auto format in new Numbers 13 just does not accept columns designated and jumps to its own Rows / Columns)

iMac, OS X Mountain Lion (10.8.3)

Posted on Feb 7, 2014 6:54 AM

Reply
Question marked as Best reply

Posted on Feb 7, 2014 7:13 AM

Singh,


This will work best if you remove the summary block and place it in a separate table. Then you can use SUMIF to designate Column A of the entries table as the search range, and Column D of the entries table as the sum range, without having to worry about where the end of the data range is.


Jerry

13 replies

Feb 7, 2014 2:53 PM in response to Wayne Contello

HI Wayne,


"Since I copied the data from the OP post the US $ was simply text."


Copied from the post, it would be text, as I doubt the webpage carries the formatting information specifying currency.


Unless Singh did the calculations in column E manually, though, I suspect the amounts in column D (and E) are numbers, formatted as currency, though. It's possibly a custom format, though. When I tried a variety of currencies from the list provided in the Inspector, none included a space between the currency symbol and the number.


Pasted into this message (below), then copied from here and pasted back into a copy of the table whence they came, only three were recognized as currency; the rest gave the error message shown in the screen shot.


Pasted values to copy:


Cash

$123.00

HK$123.00

AU$123.00

NT$123.00

US$123.00

€123.00

CHF123.00

MX$123.00

฿123.00


Screen shot of result described above:

User uploaded file

Note: Column A had been formatted to show Currency. The fact that some of these values had been interpreted as Text was initially masked, as the cells had adopted the alight right setting copied from the pasted table in Discussions. The screen shot shows the appearance after the cell alignment had been set to Automatic.


Regards,

Barry

Feb 8, 2014 6:06 AM in response to Wayne Contello

Hi Wayne,

Seems you got a real dumb pupil in me, since earlier too you had helped me out with calculation of interests. Yup your formula's has finally been accepted and mercifully its working. Inexplicably in the example above my data is being summarised for the first four entries of cash and only

Thanks all the same, you clipboard in the message was helpful and self explainatory

Regards

Singh

Feb 8, 2014 10:35 AM in response to Singh

Hi Singh,


Here's a restatement of what Jerry and Wayne have provided above, using the same formula as it would appear in the case where the summary table is separate from the data table.


One advantage to separating the summary table from the data table is that range references can be specified as the whole column. Here's an example, usint a copy of the Data part of your table, and a separate Summary table, modeled after the summary part of your table.

User uploaded file

The formula in B2 of the Summary table is shown below.


=SUMIF(Data :: $A,A2,Data :: D)


"Data" in the formula is the name of the large table. Change to match the name of your data table if necessary.


Enter the formula into B2 of the summary table, then fill down to the 'Cheque' row.


Regards,

Barry

Feb 8, 2014 10:46 AM in response to Singh

Singh wrote:


Hi Jerrold.

Yup detaching the summary block helped, and is working albeit with a little hickup ie only the first entries of cash, cheque or card are being added, Should figure the correct formula.

Thanks for the inputs.

Regards

Singh

Now you are on the path to the Numbers way of designing spreadsheets. Keep the different tasks separate. One table for data entry, and another for summarizing.


Jerry

Feb 11, 2014 4:14 AM in response to Barry

Hi Barry,

Gave it a shot, yes separating the two tables ie data and summary worked, and inexplicably since the cells are on currency desired results are being obtained and is adding / working with every working day. I was not getting the ' A2' correct, and cosequent to your post in addition to Wayne and Jerry adding to the discussion problem solved.

Thanks ever so much

SIngh

sumif or sumifs

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.