Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
bb
 
Posts: n/a
Default Excel formula question

Hi, I have an Excel formula question: I have a column of numbers that I want
to add, but I only want to add some of them. For instance:

100 Yes
200 No
50 Yes
300 Yes
250 No
500 No

I only want to add the numbers whose values have a Yes in the next column.
What is the best way to do this? Is there a way to specify this in the
formula that will add the numbers?

Thanks in advance for any information.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Nikki
 
Posts: n/a
Default Excel formula question

= Sumif( a:a,"Yes",B:B)
A B
100 Yes
200 No
50 Yes
300 Yes
250 No
500 No


"bb" wrote:

Hi, I have an Excel formula question: I have a column of numbers that I want
to add, but I only want to add some of them. For instance:

100 Yes
200 No
50 Yes
300 Yes
250 No
500 No

I only want to add the numbers whose values have a Yes in the next column.
What is the best way to do this? Is there a way to specify this in the
formula that will add the numbers?

Thanks in advance for any information.

  #3   Report Post  
Posted to microsoft.public.excel.misc
Anna
 
Posts: n/a
Default Excel formula question

column a column b
row 1 100 yes
row 2 200 No
row 3 50 Yes

Formula : =sumif(b1:b3,"yes",a1:a3)



"bb" wrote:

Hi, I have an Excel formula question: I have a column of numbers that I want
to add, but I only want to add some of them. For instance:

100 Yes
200 No
50 Yes
300 Yes
250 No
500 No

I only want to add the numbers whose values have a Yes in the next column.
What is the best way to do this? Is there a way to specify this in the
formula that will add the numbers?

Thanks in advance for any information.

  #4   Report Post  
Posted to microsoft.public.excel.misc
bb
 
Posts: n/a
Default Excel formula question

Hi, Nikki and Anna, I just wanted to say thanks for your responses. :) I
used SUMIF and it worked great!

Thanks again! :)



"bb" wrote:

Hi, I have an Excel formula question: I have a column of numbers that I want
to add, but I only want to add some of them. For instance:

100 Yes
200 No
50 Yes
300 Yes
250 No
500 No

I only want to add the numbers whose values have a Yes in the next column.
What is the best way to do this? Is there a way to specify this in the
formula that will add the numbers?

Thanks in advance for any information.

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
excel division formula question trey braid Excel Worksheet Functions 2 January 17th 06 01:46 AM
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 03:06 AM
Excel auto calculation formula question. jckurk Excel Worksheet Functions 7 June 9th 05 09:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
In excel the formula bar behaves differently on different machines vijay Excel Discussion (Misc queries) 0 May 20th 05 06:27 AM


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