Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default SUMIF: How to add some cells and ignore other cells in a row

B3=1 C3=100 D3=1% E3=100 F3=10% G3=90% H3=99
(it starts from B3 and ends at AM3 i.e 21 cells wide)

from the said range i wish to SUM only the values which are not percentage
values.
SUM from B3 to AM3 ignoring percentage cells.

i used =SUMIF(B3:AL3,"<100%")-1 to add only the cells having value in
Percentage

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 51
Default SUMIF: How to add some cells and ignore other cells in a row

Percentage in Excel is a number, as all other numbers, so how are you
going to distinguish between 1 and 100%? unless there is no
possibility to have a value of 100% in a cell, and if you can use an
Auxiliary column, you can say in an Aux column(say B4):
=IF(B3<1=FALSE,B3,"") and copy it through under your data, and in the
end, =sum(B3:Bx)

This will cause problems if you have decimal values in your cells like
0.5 because it will ignore them and the second condition is not to
have a 100% because it will be treated as 1.
My solution is very primitive, and i know that the other persons who
are more experienced will come with many better solutions, it is just
that i wanted to help.

Regards
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default SUMIF: How to add some cells and ignore other cells in a row

Hi,

With a helper column. Put this in B4 and drag right

=(LEFT( CELL("format",B3),1)="P")

The sum your range with

=SUMPRODUCT((B4:AM4*1=0)*(B3:AM3))

Mike



"Danish Ayub" wrote:

B3=1 C3=100 D3=1% E3=100 F3=10% G3=90% H3=99
(it starts from B3 and ends at AM3 i.e 21 cells wide)

from the said range i wish to SUM only the values which are not percentage
values.
SUM from B3 to AM3 ignoring percentage cells.

i used =SUMIF(B3:AL3,"<100%")-1 to add only the cells having value in
Percentage

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
how to sum cells and ignore the #div/0! 's ? Todd Excel Worksheet Functions 6 April 25th 10 12:31 AM
drag data vertically over hidden cells.. ignore hidden cells Derwood Excel Discussion (Misc queries) 1 March 6th 08 10:59 PM
Count cells with numbers and ignore cells with errors WonderingaboutMicrosoft Excel Discussion (Misc queries) 6 December 10th 06 08:03 PM
How do I count cells with text but ignore cells with spaces? Husker87 Excel Discussion (Misc queries) 2 September 21st 06 12:31 AM
how can i ignore blank cells when multiple cells? arash Excel Worksheet Functions 4 November 17th 05 04:35 PM


All times are GMT +1. The time now is 06:11 AM.

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"