#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default IF function

Hi, I want to learn how to sum cells with negative number with certain text
description, for example, B2=5, C2=stay, B3=-10, C3=transfer, B4=-3,
C4=transfer
I want A1 to sum only cells with adjacent colum with text "transfer"? Do I
use IF function?
Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default IF function

hi
might be better to use sumif.
=sumif(B2:B10,"transfer",A2:A10)

regards
FSt1


"freebee" wrote:

Hi, I want to learn how to sum cells with negative number with certain text
description, for example, B2=5, C2=stay, B3=-10, C3=transfer, B4=-3,
C4=transfer
I want A1 to sum only cells with adjacent colum with text "transfer"? Do I
use IF function?
Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default IF function

Hi, thanks for the help.

"FSt1" wrote:

hi
might be better to use sumif.
=sumif(B2:B10,"transfer",A2:A10)

regards
FSt1


"freebee" wrote:

Hi, I want to learn how to sum cells with negative number with certain text
description, for example, B2=5, C2=stay, B3=-10, C3=transfer, B4=-3,
C4=transfer
I want A1 to sum only cells with adjacent colum with text "transfer"? Do I
use IF function?
Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 169
Default IF function

Do I understand correctly that you want to sum values based on 2 criteria?
value is less than 0 and the descriptor = transfer.

If that is correct, then I think you'll need an advanced application of
SUMPRODUCT.

SUMPRODUCT can help you sum on multiple criteria. The formula would look
something like (for your example):

=SUMPRODUCT(B2:B4,--(B2:B4<0),--(C2:C4="transfer"))

Here's an article describing how ti works:
http://www.kan.org/tips/excel_sumproduct_advanced1.php
--
Tips for Excel, Word, PowerPoint and Other Applications
http://www.kan.org/tips


"freebee" wrote:

Hi, I want to learn how to sum cells with negative number with certain text
description, for example, B2=5, C2=stay, B3=-10, C3=transfer, B4=-3,
C4=transfer
I want A1 to sum only cells with adjacent colum with text "transfer"? Do I
use IF function?
Thanks.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default IF function

Yes, I checked article and solve the problem. Thank you.
"M Kan" wrote:

Do I understand correctly that you want to sum values based on 2 criteria?
value is less than 0 and the descriptor = transfer.

If that is correct, then I think you'll need an advanced application of
SUMPRODUCT.

SUMPRODUCT can help you sum on multiple criteria. The formula would look
something like (for your example):

=SUMPRODUCT(B2:B4,--(B2:B4<0),--(C2:C4="transfer"))

Here's an article describing how ti works:
http://www.kan.org/tips/excel_sumproduct_advanced1.php
--
Tips for Excel, Word, PowerPoint and Other Applications
http://www.kan.org/tips


"freebee" wrote:

Hi, I want to learn how to sum cells with negative number with certain text
description, for example, B2=5, C2=stay, B3=-10, C3=transfer, B4=-3,
C4=transfer
I want A1 to sum only cells with adjacent colum with text "transfer"? Do I
use IF function?
Thanks.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default IF function

it isn't that easy when you broke both hands

"freebee" wrote:

Hi, I want to learn how to sum cells with negative number with certain text
description, for example, B2=5, C2=stay, B3=-10, C3=transfer, B4=-3,
C4=transfer
I want A1 to sum only cells with adjacent colum with text "transfer"? Do I
use IF function?
Thanks.

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
ISBLANK function not working when cell is blank dut to function re mcmilja Excel Discussion (Misc queries) 9 May 7th 23 03:43 AM
copy of excel file not showing formulal/function in the function b oaallam Excel Discussion (Misc queries) 4 September 6th 07 01:20 PM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
Emulate Index/Match combo function w/ VBA custom function Spencer Hutton Excel Worksheet Functions 2 May 2nd 05 05:26 PM


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