Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
INFOMGMTRSRCH
 
Posts: n/a
Default Need Function Help


undefined
I am an Excel novice and I need a quick piece of advice.
Let's assume I have two columns of data, for example

0 A B
1 0 2
2 1 4
3 0 4
4 0 5
5 1 6

I need to know if an If then statement can be created that if A="1",
sum the corresponding values of B. In this example, the cell would
return the value 10 (=4+6). I don't know the proper syntax for
creating this statement, nor the proper functions to use.

Any help would be greatly appreciated.


--
INFOMGMTRSRCH
------------------------------------------------------------------------
INFOMGMTRSRCH's Profile: http://www.excelforum.com/member.php...o&userid=24753
View this thread: http://www.excelforum.com/showthread...hreadid=383277

  #2   Report Post  
N Harkawat
 
Posts: n/a
Default

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



"INFOMGMTRSRCH"
wrote in message
news:INFOMGMTRSRCH.1rejek_1120071950.1064@excelfor um-nospam.com...

undefined
I am an Excel novice and I need a quick piece of advice.
Let's assume I have two columns of data, for example

0 A B
1 0 2
2 1 4
3 0 4
4 0 5
5 1 6

I need to know if an If then statement can be created that if A="1",
sum the corresponding values of B. In this example, the cell would
return the value 10 (=4+6). I don't know the proper syntax for
creating this statement, nor the proper functions to use.

Any help would be greatly appreciated.


--
INFOMGMTRSRCH
------------------------------------------------------------------------
INFOMGMTRSRCH's Profile:
http://www.excelforum.com/member.php...o&userid=24753
View this thread: http://www.excelforum.com/showthread...hreadid=383277



  #3   Report Post  
dominicb
 
Posts: n/a
Default


Good evening Infomgmtrsch

No problem. The function you require is =SUMIF and using the example
you have used in your posting, the syntax goes thus:

=SUMIF(A1:A5,"1",B1:B5)

HTH

DominicB


--
dominicb
------------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php...o&userid=18932
View this thread: http://www.excelforum.com/showthread...hreadid=383277

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
I NEED HELP with the SPELLNUMBER Function vag Excel Worksheet Functions 0 June 21st 05 08:17 AM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM


All times are GMT +1. The time now is 02:23 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"