Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Sum & IF condition

I am attempting to sum columns based on whether one column
contains text. When I use an If statement, it only works
part of the time, and the other part I receive the dreaded
#VALUE! since one column contains text. I have tried the
following formulas and they don't work in all conditions.
Can someone point me in the right direction?

Sample Data
Col C Col D
6 Not Rated
6 3
6 0

=SUM(IF(CODE($D31=78),$E27,SUM($C31-$D31)+$E27))
=SUM(IF(CODE($D31<78),($C31-$D31)+$E27),$E27)
=IF(LEN($D310),SUM(($C31-$D31)+$E27),$E27)
=SUM(IF(LEFT(D31="N",1),$E27,($C31-$D31)+$E27))
=IF(CODE($D32<78),(SUM($C32-$D32)+$E31),$E31)

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Sum & IF condition

Thanks Kent! Works great.

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
If condition not met get #N/A Cefoxtrot Excel Discussion (Misc queries) 5 April 4th 09 02:40 AM
Condition Erlang Excel Discussion (Misc queries) 2 July 23rd 08 12:44 AM
lookup with multiple condition, but one condition to satisfy is en Eddy Stan Excel Worksheet Functions 2 October 27th 07 02:06 PM
Combine an OR condition with an AND condition Will Excel Discussion (Misc queries) 1 April 6th 07 03:52 PM
Condition 1 overules condition 2? Bultgren Excel Worksheet Functions 2 January 20th 06 12:29 PM


All times are GMT +1. The time now is 08:18 PM.

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"