ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Sumifs with error value in the sum range (https://www.excelbanter.com/excel-discussion-misc-queries/196814-sumifs-error-value-sum-range.html)

stylissimo

Sumifs with error value in the sum range
 
if this is my spreadsheet:

A B C
1 Item 4 bags #n/a

2 Gross Total------------------ #n/a

3 Item 3 Cosmetics 1985.00

4 Item 3 Cosmetics 1500.00

5 Gross Total------------------ 3485.00

6 GRAND TOTAL-------------- "XXXXXXXXXX" <----this is the part that i
want to know. HOw do i use SUMIF to get the grand total of all gross total
automatically (leaving the #n/a values)


T. Valko

Sumifs with error value in the sum range
 
Try this:

=SUMIF(C1:C5,"<1E100")

--
Biff
Microsoft Excel MVP


"stylissimo" wrote in message
...
if this is my spreadsheet:

A B C
1 Item 4 bags #n/a

2 Gross Total------------------ #n/a

3 Item 3 Cosmetics 1985.00

4 Item 3 Cosmetics 1500.00

5 Gross Total------------------ 3485.00

6 GRAND TOTAL-------------- "XXXXXXXXXX" <----this is the part that i
want to know. HOw do i use SUMIF to get the grand total of all gross
total
automatically (leaving the #n/a values)




stylissimo

Sumifs with error value in the sum range
 
thanks very much! it worked! =D

"T. Valko" wrote:

Try this:

=SUMIF(C1:C5,"<1E100")

--
Biff
Microsoft Excel MVP


"stylissimo" wrote in message
...
if this is my spreadsheet:

A B C
1 Item 4 bags #n/a

2 Gross Total------------------ #n/a

3 Item 3 Cosmetics 1985.00

4 Item 3 Cosmetics 1500.00

5 Gross Total------------------ 3485.00

6 GRAND TOTAL-------------- "XXXXXXXXXX" <----this is the part that i
want to know. HOw do i use SUMIF to get the grand total of all gross
total
automatically (leaving the #n/a values)





stylissimo

Sumifs with error value in the sum range
 
oh one thing, though the formula is working but i just have one concern, if i
will use this range "C1:C5", it will add all valid values under this column,
including the prices of each items, right? I just want to add the values
under "Gross Total" only...how will i do that?

"T. Valko" wrote:

Try this:

=SUMIF(C1:C5,"<1E100")

--
Biff
Microsoft Excel MVP


"stylissimo" wrote in message
...
if this is my spreadsheet:

A B C
1 Item 4 bags #n/a

2 Gross Total------------------ #n/a

3 Item 3 Cosmetics 1985.00

4 Item 3 Cosmetics 1500.00

5 Gross Total------------------ 3485.00

6 GRAND TOTAL-------------- "XXXXXXXXXX" <----this is the part that i
want to know. HOw do i use SUMIF to get the grand total of all gross
total
automatically (leaving the #n/a values)





T. Valko

Sumifs with error value in the sum range
 
If you want only the "gross totals" added:

Try this array formula** :

=SUM(IF((A1:A5="gross total")*(ISNUMBER(C1:C5)),C1:C5))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"stylissimo" wrote in message
...
oh one thing, though the formula is working but i just have one concern,
if i
will use this range "C1:C5", it will add all valid values under this
column,
including the prices of each items, right? I just want to add the values
under "Gross Total" only...how will i do that?

"T. Valko" wrote:

Try this:

=SUMIF(C1:C5,"<1E100")

--
Biff
Microsoft Excel MVP


"stylissimo" wrote in message
...
if this is my spreadsheet:

A B C
1 Item 4 bags #n/a

2 Gross Total------------------ #n/a

3 Item 3 Cosmetics 1985.00

4 Item 3 Cosmetics 1500.00

5 Gross Total------------------ 3485.00

6 GRAND TOTAL-------------- "XXXXXXXXXX" <----this is the part that
i
want to know. HOw do i use SUMIF to get the grand total of all gross
total
automatically (leaving the #n/a values)







stylissimo

Sumifs with error value in the sum range
 
kindly check the actual file i have:
http://i228.photobucket.com/albums/e...ionproblem.jpg

how will i get the grand total at "H1361"? if i will just use the range
H42:H315, it will also include the individual prices of the items, right?
so, what function should i use so i can only sum the "Gross Amount" with no
error values automatically?

"T. Valko" wrote:

Try this:

=SUMIF(C1:C5,"<1E100")

--
Biff
Microsoft Excel MVP


"stylissimo" wrote in message
...
if this is my spreadsheet:

A B C
1 Item 4 bags #n/a

2 Gross Total------------------ #n/a

3 Item 3 Cosmetics 1985.00

4 Item 3 Cosmetics 1500.00

5 Gross Total------------------ 3485.00

6 GRAND TOTAL-------------- "XXXXXXXXXX" <----this is the part that i
want to know. HOw do i use SUMIF to get the grand total of all gross
total
automatically (leaving the #n/a values)





Bob Phillips

Sumifs with error value in the sum range
 
=SUMIF(C1:C5,"<1E100")/2

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"stylissimo" wrote in message
...
oh one thing, though the formula is working but i just have one concern,
if i
will use this range "C1:C5", it will add all valid values under this
column,
including the prices of each items, right? I just want to add the values
under "Gross Total" only...how will i do that?

"T. Valko" wrote:

Try this:

=SUMIF(C1:C5,"<1E100")

--
Biff
Microsoft Excel MVP


"stylissimo" wrote in message
...
if this is my spreadsheet:

A B C
1 Item 4 bags #n/a

2 Gross Total------------------ #n/a

3 Item 3 Cosmetics 1985.00

4 Item 3 Cosmetics 1500.00

5 Gross Total------------------ 3485.00

6 GRAND TOTAL-------------- "XXXXXXXXXX" <----this is the part that
i
want to know. HOw do i use SUMIF to get the grand total of all gross
total
automatically (leaving the #n/a values)







stylissimo

Sumifs with error value in the sum range
 
i TRied the formula given but it highlighted the word "Amount"..i don't
understand why...

please see the screenshot at the bottom right.

http://i228.photobucket.com/albums/e...onproblem2.jpg

"T. Valko" wrote:

If you want only the "gross totals" added:

Try this array formula** :

=SUM(IF((A1:A5="gross total")*(ISNUMBER(C1:C5)),C1:C5))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"stylissimo" wrote in message
...
oh one thing, though the formula is working but i just have one concern,
if i
will use this range "C1:C5", it will add all valid values under this
column,
including the prices of each items, right? I just want to add the values
under "Gross Total" only...how will i do that?

"T. Valko" wrote:

Try this:

=SUMIF(C1:C5,"<1E100")

--
Biff
Microsoft Excel MVP


"stylissimo" wrote in message
...
if this is my spreadsheet:

A B C
1 Item 4 bags #n/a

2 Gross Total------------------ #n/a

3 Item 3 Cosmetics 1985.00

4 Item 3 Cosmetics 1500.00

5 Gross Total------------------ 3485.00

6 GRAND TOTAL-------------- "XXXXXXXXXX" <----this is the part that
i
want to know. HOw do i use SUMIF to get the grand total of all gross
total
automatically (leaving the #n/a values)








stylissimo

Sumifs with error value in the sum range
 
i can't use this formula because i will be including the prices of each
items...i just want to filter the valid values on column C under "Gross
Total" and sum it up to get the grand total of it automatically

"Bob Phillips" wrote:

=SUMIF(C1:C5,"<1E100")/2

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"stylissimo" wrote in message
...
oh one thing, though the formula is working but i just have one concern,
if i
will use this range "C1:C5", it will add all valid values under this
column,
including the prices of each items, right? I just want to add the values
under "Gross Total" only...how will i do that?

"T. Valko" wrote:

Try this:

=SUMIF(C1:C5,"<1E100")

--
Biff
Microsoft Excel MVP


"stylissimo" wrote in message
...
if this is my spreadsheet:

A B C
1 Item 4 bags #n/a

2 Gross Total------------------ #n/a

3 Item 3 Cosmetics 1985.00

4 Item 3 Cosmetics 1500.00

5 Gross Total------------------ 3485.00

6 GRAND TOTAL-------------- "XXXXXXXXXX" <----this is the part that
i
want to know. HOw do i use SUMIF to get the grand total of all gross
total
automatically (leaving the #n/a values)








Bob Phillips

Sumifs with error value in the sum range
 
Yes, but the sum will get double the value, the sum of the individual items,
and the sum of the totals. So just divide by 2 as I showed.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"stylissimo" wrote in message
...
i can't use this formula because i will be including the prices of each
items...i just want to filter the valid values on column C under "Gross
Total" and sum it up to get the grand total of it automatically

"Bob Phillips" wrote:

=SUMIF(C1:C5,"<1E100")/2

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"stylissimo" wrote in message
...
oh one thing, though the formula is working but i just have one
concern,
if i
will use this range "C1:C5", it will add all valid values under this
column,
including the prices of each items, right? I just want to add the
values
under "Gross Total" only...how will i do that?

"T. Valko" wrote:

Try this:

=SUMIF(C1:C5,"<1E100")

--
Biff
Microsoft Excel MVP


"stylissimo" wrote in message
...
if this is my spreadsheet:

A B C
1 Item 4 bags #n/a

2 Gross Total------------------ #n/a

3 Item 3 Cosmetics 1985.00

4 Item 3 Cosmetics 1500.00

5 Gross Total------------------ 3485.00

6 GRAND TOTAL-------------- "XXXXXXXXXX" <----this is the part
that
i
want to know. HOw do i use SUMIF to get the grand total of all
gross
total
automatically (leaving the #n/a values)










T. Valko

Sumifs with error value in the sum range
 
i TRied the formula given but it highlighted the word "Amount"..
i don't understand why...


The formula in your screencap *isn't* the same formula I suggested.

First off, use the = sign to start a formula. Get out of the habit of using
the + sign.

This is an *array formula*. An array formula *must* be entered using the key
combination of CTRL, SHIFT, ENTER. Normally when you type a formula you hit
the ENTER key. With an array formula it's different. You use a combination
of keys. Those keys are CTRL, SHIFT, ENTER. That means hold down both the
CTRL key and the SHIFT key then hit ENTER. When done properly Excel will
enclose the formula in squiggly braces { }. You *can not* just type these
braces in. You *must* use the key combination to produce them. Also, anytime
you edit an array formula it *must* be re-entered using the key combination.

Another thing in your screencap, the amounts of "gross total" in column H
have "Php" along side of the numeric value. Is this "Php" a currency format?
If it's a TEXT prefix then you'll need a different formula.

Make sure you use the * in the formula. This is the multiplication operator.
In your screencap you replaced this with a comma. Enter this formula
*exactly* as shown and make sure you use the key combination CTRL, SHIFT,
ENTER.

=SUM(IF((F12:F1382="gross total")*(ISNUMBER(H12:H1382)),H12:H1382))


--
Biff
Microsoft Excel MVP


"stylissimo" wrote in message
...
i TRied the formula given but it highlighted the word "Amount"..i don't
understand why...

please see the screenshot at the bottom right.

http://i228.photobucket.com/albums/e...onproblem2.jpg

"T. Valko" wrote:

If you want only the "gross totals" added:

Try this array formula** :

=SUM(IF((A1:A5="gross total")*(ISNUMBER(C1:C5)),C1:C5))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"stylissimo" wrote in message
...
oh one thing, though the formula is working but i just have one
concern,
if i
will use this range "C1:C5", it will add all valid values under this
column,
including the prices of each items, right? I just want to add the
values
under "Gross Total" only...how will i do that?

"T. Valko" wrote:

Try this:

=SUMIF(C1:C5,"<1E100")

--
Biff
Microsoft Excel MVP


"stylissimo" wrote in message
...
if this is my spreadsheet:

A B C
1 Item 4 bags #n/a

2 Gross Total------------------ #n/a

3 Item 3 Cosmetics 1985.00

4 Item 3 Cosmetics 1500.00

5 Gross Total------------------ 3485.00

6 GRAND TOTAL-------------- "XXXXXXXXXX" <----this is the part
that
i
want to know. HOw do i use SUMIF to get the grand total of all
gross
total
automatically (leaving the #n/a values)











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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com