#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 69
Default SumIf right = 1

Hi. I need to make a sum if from A5 to B100 if right A5:A100 =1

So what I mean is only sum if right A = 1

when I say A I mean:


A1
A2
A3
A....


regards,
Marco
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 364
Default SumIf right = 1

"Marco" wrote in message
...
Hi. I need to make a sum if from A5 to B100 if right A5:A100 =1

So what I mean is only sum if right A = 1

when I say A I mean:


A1
A2
A3
A....


regards,
Marco


This formula will sum values in B5:B100 where the corresponding value in
A5:A100 equals 1:
=SUMIF(A5:A100,1,B5:B100)

I don't understand what you mean by "right A", though. Post back explaining
this if you need more help.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 69
Default SumIf right = 1

Hi.

My value in column a a

1.2
7.1
4.2
4.1
......

if the the value is 1 I want to SUM.

such as 7.1 and 4.1

if you make a right 1 to this you will get the result = 1

So I want to sum if right is 1, witch will sum 4.1 and 7.1


Regards,
Marco




"Stephen" wrote:

"Marco" wrote in message
...
Hi. I need to make a sum if from A5 to B100 if right A5:A100 =1

So what I mean is only sum if right A = 1

when I say A I mean:


A1
A2
A3
A....


regards,
Marco


This formula will sum values in B5:B100 where the corresponding value in
A5:A100 equals 1:
=SUMIF(A5:A100,1,B5:B100)

I don't understand what you mean by "right A", though. Post back explaining
this if you need more help.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default SumIf right = 1

I'd use something like:
=SUMPRODUCT(--(RIGHT(TEXT(A1:A10,"0.00000"),6)=".10000"),A1:A10)

You may need to increase the decimal places depending on your data.

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

Marco wrote:

Hi.

My value in column a a

1.2
7.1
4.2
4.1
.....

if the the value is 1 I want to SUM.

such as 7.1 and 4.1

if you make a right 1 to this you will get the result = 1

So I want to sum if right is 1, witch will sum 4.1 and 7.1

Regards,
Marco

"Stephen" wrote:

"Marco" wrote in message
...
Hi. I need to make a sum if from A5 to B100 if right A5:A100 =1

So what I mean is only sum if right A = 1

when I say A I mean:


A1
A2
A3
A....


regards,
Marco


This formula will sum values in B5:B100 where the corresponding value in
A5:A100 equals 1:
=SUMIF(A5:A100,1,B5:B100)

I don't understand what you mean by "right A", though. Post back explaining
this if you need more help.




--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 364
Default SumIf right = 1

If your values in column A are numbers, try
=SUMPRODUCT((ROUND(A5:A100-INT(A5:A100),1)=0.1)*B5:B100)

If they are text strings, try
=SUMPRODUCT((RIGHT(A5:A100,1)="1")*B5:B100)

"Marco" wrote in message
...
Hi.

My value in column a a

1.2
7.1
4.2
4.1
.....

if the the value is 1 I want to SUM.

such as 7.1 and 4.1

if you make a right 1 to this you will get the result = 1

So I want to sum if right is 1, witch will sum 4.1 and 7.1


Regards,
Marco




"Stephen" wrote:

"Marco" wrote in message
...
Hi. I need to make a sum if from A5 to B100 if right A5:A100 =1

So what I mean is only sum if right A = 1

when I say A I mean:


A1
A2
A3
A....


regards,
Marco


This formula will sum values in B5:B100 where the corresponding value in
A5:A100 equals 1:
=SUMIF(A5:A100,1,B5:B100)

I don't understand what you mean by "right A", though. Post back
explaining
this if you need more help.





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
sumif for multi conditions. i.e sumif(A1:A10,"Jon" and B1:B10,"A" Harry Seymour Excel Worksheet Functions 9 June 12th 07 10:47 PM
Embedding a Sumif in a sumif C.Pflugrath Excel Worksheet Functions 5 August 31st 05 07:31 PM
sumif help. Jambruins Excel Discussion (Misc queries) 2 April 12th 05 06:29 PM
nested sumif or sumif with two criteria dshigley Excel Worksheet Functions 5 April 5th 05 03:34 AM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM


All times are GMT +1. The time now is 08:55 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"