Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
pinmaster,
=SUM(IF(RIGHT(A1:A10)="n",ABS(LEFT(A1:A10,LEN(A1:A 10)-1)))) Why did you include the ABS() function? -- Regards, Sandy In Perth, the ancient capital of Scotland and the crowning place of kings with @tiscali.co.uk "pinmaster" wrote in message ... 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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to convert a month to a quarter ...... | New Users to Excel | |||
Text entries behaving like numbers | Excel Discussion (Misc queries) | |||
Using numbers as numbers in a cell having text | Excel Discussion (Misc queries) | |||
Convert text numbers to numbers | Excel Worksheet Functions | |||
Converting Numbers to Text properly | Excel Discussion (Misc queries) |