Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 788
Default Summing a row excluding a text character

Howdy...

Here's my question...

I'm attempting to sum a row of #'s MINUS the lowest value. In my
spreadsheet the lowest value could be a text character (NP) OR it could be a
numeral.

EX: (#'s are in seperate cells)

4 8 9 10 NP 2 = 33 (doesn't include the NP)
2 4 6 8 1 = 20 (doesn't include the 1)

I've used the formula sum(a2:a10) - min (a2:a10) but, if NP is in the array,
the value returned is 0.

Any help would be appreciated.

THX
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Summing a row excluding a text character

Maybe something like this?:

With
your sample data in A1:F2

G1: =SUM(A1:F1)-IF(COUNTIF(A1:F1,"NP"),0,MIN(A1:F1))
Copy that formula down to G2

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Chris" wrote:

Howdy...

Here's my question...

I'm attempting to sum a row of #'s MINUS the lowest value. In my
spreadsheet the lowest value could be a text character (NP) OR it could be a
numeral.

EX: (#'s are in seperate cells)

4 8 9 10 NP 2 = 33 (doesn't include the NP)
2 4 6 8 1 = 20 (doesn't include the 1)

I've used the formula sum(a2:a10) - min (a2:a10) but, if NP is in the array,
the value returned is 0.

Any help would be appreciated.

THX

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 788
Default Summing a row excluding a text character

Thanks Ron...that worked great.

Regards...

"Ron Coderre" wrote:

Maybe something like this?:

With
your sample data in A1:F2

G1: =SUM(A1:F1)-IF(COUNTIF(A1:F1,"NP"),0,MIN(A1:F1))
Copy that formula down to G2

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Chris" wrote:

Howdy...

Here's my question...

I'm attempting to sum a row of #'s MINUS the lowest value. In my
spreadsheet the lowest value could be a text character (NP) OR it could be a
numeral.

EX: (#'s are in seperate cells)

4 8 9 10 NP 2 = 33 (doesn't include the NP)
2 4 6 8 1 = 20 (doesn't include the 1)

I've used the formula sum(a2:a10) - min (a2:a10) but, if NP is in the array,
the value returned is 0.

Any help would be appreciated.

THX

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
Text entries behaving like numbers jkiser Excel Discussion (Misc queries) 12 August 30th 06 09:29 PM
Find last occurance of character in text string JDay01 Excel Worksheet Functions 2 February 14th 06 04:29 PM
Remove last character of text string Grant Excel Worksheet Functions 2 September 29th 05 05:17 PM
Changing a specific character type in text string olasa Excel Discussion (Misc queries) 0 March 20th 05 11:35 PM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM


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