Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
amrezzat
 
Posts: n/a
Default help me getting value of column based on condition


heloo
help me in that please
if i have these 2 coulmns


1 1000
2 1222
3 200
1 100
2 200
3 300
4 400

i want to calculate how many 1 appears
and the total of all value in the second colum in 1
so the results will be 2 times
1000+100=1100

please tell me in details how to do that,


--
amrezzat
------------------------------------------------------------------------
amrezzat's Profile: http://www.excelforum.com/member.php...o&userid=28766
View this thread: http://www.excelforum.com/showthread...hreadid=484555

  #2   Report Post  
RagDyeR
 
Posts: n/a
Default help me getting value of column based on condition

Try these:

=COUNTIF(A:A,1)

=SUMIF(A:A,1,B:B)
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"amrezzat" wrote in
message ...

heloo
help me in that please
if i have these 2 coulmns


1 1000
2 1222
3 200
1 100
2 200
3 300
4 400

i want to calculate how many 1 appears
and the total of all value in the second colum in 1
so the results will be 2 times
1000+100=1100

please tell me in details how to do that,


--
amrezzat
------------------------------------------------------------------------
amrezzat's Profile:
http://www.excelforum.com/member.php...o&userid=28766
View this thread: http://www.excelforum.com/showthread...hreadid=484555


  #3   Report Post  
bpeltzer
 
Posts: n/a
Default help me getting value of column based on condition

Count the number of times using countif: =countif(a:a,1).
Total the associated entries from column B using sumif: =sumif(a:a,1,b:b).


"amrezzat" wrote:


heloo
help me in that please
if i have these 2 coulmns


1 1000
2 1222
3 200
1 100
2 200
3 300
4 400

i want to calculate how many 1 appears
and the total of all value in the second colum in 1
so the results will be 2 times
1000+100=1100

please tell me in details how to do that,


--
amrezzat
------------------------------------------------------------------------
amrezzat's Profile: http://www.excelforum.com/member.php...o&userid=28766
View this thread: http://www.excelforum.com/showthread...hreadid=484555


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
creating a bar graph Johnfli Excel Discussion (Misc queries) 0 October 26th 05 08:16 PM
How do I sum a column based on another column spepperchin Excel Discussion (Misc queries) 2 October 17th 05 11:48 PM
match and count words David Excel Worksheet Functions 5 July 4th 05 02:24 AM
Format cell in column B based on value in the next cell (column c) Nicole Excel Discussion (Misc queries) 7 May 18th 05 10:19 PM
Count cells based on date range in another column [email protected] New Users to Excel 1 May 5th 05 08:11 PM


All times are GMT +1. The time now is 03:26 PM.

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"