Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default SUM NUMBERS WITH APPENDING TEXT

I have a problem on hoe to deal with this data:
in a column data are as follows:
5N
4N
3
4
3N and so on
Now i'd like to sum up all numbers with appending text, and counting cells
having "N",and count cells without "N". I hope somebody can urgently help
me..thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default SUM NUMBERS WITH APPENDING TEXT

Hi,

Try something like these 2 array formulas:


=SUM(IF(RIGHT(A1:A10)="n",ABS(LEFT(A1:A10,LEN(A1:A 10)-1))))

and for counting n's use:

=SUM(IF(RIGHT(A1:A10,1)="n",1))

both formula will need to be entered using CTRL+SHIFT+ENTER

Hope this helps!
Jean-Guy
"spidut" wrote:

I have a problem on hoe to deal with this data:
in a column data are as follows:
5N
4N
3
4
3N and so on
Now i'd like to sum up all numbers with appending text, and counting cells
having "N",and count cells without "N". I hope somebody can urgently help
me..thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default SUM NUMBERS WITH APPENDING TEXT

If there is only ever only one letter N in the cells then to add up those
cells try:

=SUM(IF(RIGHT(A1:A4)="N",--LEFT(A1:A4,LEN(A1:A4)-1)))

This is an array formula which must be entered with Control and Shift
pressed and held while you press Enter

To add up the other cells then simply =SUM(A1:A4) wll do it because SUM()
ignores text. I know that you didn't ask that but......


To count the number of cells with an N then try:

=COUNTA(A1:A4)-COUNT(A1:A4)

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"spidut" wrote in message
...
I have a problem on hoe to deal with this data:
in a column data are as follows:
5N
4N
3
4
3N and so on
Now i'd like to sum up all numbers with appending text, and counting cells
having "N",and count cells without "N". I hope somebody can urgently help
me..thanks



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default SUM NUMBERS WITH APPENDING TEXT

=COUNTIF(A1:A100,"*N*")


"spidut" wrote:

I have a problem on hoe to deal with this data:
in a column data are as follows:
5N
4N
3
4
3N and so on
Now i'd like to sum up all numbers with appending text, and counting cells
having "N",and count cells without "N". I hope somebody can urgently help
me..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
How to convert a month to a quarter ...... Epinn New Users to Excel 26 May 3rd 23 07:45 PM
Text entries behaving like numbers jkiser Excel Discussion (Misc queries) 12 August 30th 06 09:29 PM
Using numbers as numbers in a cell having text Roland Excel Discussion (Misc queries) 2 March 11th 06 12:41 PM
Convert text numbers to numbers Barb Excel Worksheet Functions 4 October 22nd 05 07:18 PM
Converting Numbers to Text properly Shirley Munro Excel Discussion (Misc queries) 1 February 16th 05 03:01 PM


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