Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Table:
1 2 3 N 4 N N 2 4 5 1 2 3 4 5 I want to sum each row and expected results are NA, NA, 15 for 1st, 2nd and 3rd row, respectively. I used IF(ISNUMBER(A1:E1),SUM(A1:E1),"NA") and then shift+ctrl+enter. but seems the results are not correct. It always give me 6,11,15..:( any mistake here? thanks. yy |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
=SUM(IF(ISNUMBER(A1:E1),A1:E1))
as an array formula -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) wrote in message oups.com... Table: 1 2 3 N 4 N N 2 4 5 1 2 3 4 5 I want to sum each row and expected results are NA, NA, 15 for 1st, 2nd and 3rd row, respectively. I used IF(ISNUMBER(A1:E1),SUM(A1:E1),"NA") and then shift+ctrl+enter. but seems the results are not correct. It always give me 6,11,15..:( any mistake here? thanks. yy |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Bob,
thanks but your fomula will have the same results as mine: 10 11 15. I want to get "NA" for the first two rows. On Aug 3, 11:57 am, "Bob Phillips" wrote: =SUM(IF(ISNUMBER(A1:E1),A1:E1)) as an array formula -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) wrote in message oups.com... Table: 1 2 3 N 4 N N 2 4 5 1 2 3 4 5 I want to sum each row and expected results are NA, NA, 15 for 1st, 2nd and 3rd row, respectively. I used IF(ISNUMBER(A1:E1),SUM(A1:E1),"NA") and then shift+ctrl+enter. but seems the results are not correct. It always give me 6,11,15..:( any mistake here? thanks. yy- Hide quoted text - - Show quoted text - |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
=IF(Count(A1:E1)=5,SUM(A1:E1),"NA")
-- Regards, Tom Ogilvy " wrote: Table: 1 2 3 N 4 N N 2 4 5 1 2 3 4 5 I want to sum each row and expected results are NA, NA, 15 for 1st, 2nd and 3rd row, respectively. I used IF(ISNUMBER(A1:E1),SUM(A1:E1),"NA") and then shift+ctrl+enter. but seems the results are not correct. It always give me 6,11,15..:( any mistake here? thanks. yy |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
That works.
thank. yong On Aug 3, 12:14 pm, Tom Ogilvy wrote: =IF(Count(A1:E1)=5,SUM(A1:E1),"NA") -- Regards, Tom Ogilvy |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
return a value between set numbers | Excel Discussion (Misc queries) | |||
How to return the average of the LAST 3 numbers in a row | Excel Worksheet Functions | |||
how to return a set of numbers in column A | Excel Worksheet Functions | |||
Get different numbers to return text?? | Excel Worksheet Functions | |||
How to compare 3 numbers and return value | Excel Worksheet Functions |