Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default If IsNumber or IsNumeric

I'm not an excel formula pro and am struggling. Can anyone help?
I've got a column of data, say C1:C10. The contents of ea. cell in
this column are derived from a formula in another workbook. The C
cells can be populated with either a number or #N/A N.A.

I'm trying to create a formula that results in the new cell showing the
number if the C cell holds a number, but also shows a 0 if the C cell
shows #N/A N.A.

Here's what I've got (and I've tried both isnumber and isnumeric).
=IF(IsNumber C1:c10, C1:c10, 0).

I'm sure this is pretty simple but I can't make it work. Thanks for
any ideas.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 98
Default If IsNumber or IsNumeric

Kitty,

if you look up the ISERR or ISERROR functions in Help, that should help you out. Using one of these functions in your IF function
should do what you need it to.

I hope this helps,

Conan


"Kitty" wrote in message oups.com...
I'm not an excel formula pro and am struggling. Can anyone help?
I've got a column of data, say C1:C10. The contents of ea. cell in
this column are derived from a formula in another workbook. The C
cells can be populated with either a number or #N/A N.A.

I'm trying to create a formula that results in the new cell showing the
number if the C cell holds a number, but also shows a 0 if the C cell
shows #N/A N.A.

Here's what I've got (and I've tried both isnumber and isnumeric).
=IF(IsNumber C1:c10, C1:c10, 0).

I'm sure this is pretty simple but I can't make it work. Thanks for
any ideas.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default If IsNumber or IsNumeric

Hi Kitty,

As Conan said, you can use ISERROR to determine if the value is #N/A. There
is a more specific worksheet function named ISNA that will do it as well:

=IF(ISNA(C1), 0, C1)

I would suggest use ISNA since you're looking for that specific error.

--
Regards,

Jake Marx
www.longhead.com


[please keep replies in the newsgroup - email address unmonitored]

Kitty wrote:
I'm not an excel formula pro and am struggling. Can anyone help?
I've got a column of data, say C1:C10. The contents of ea. cell in
this column are derived from a formula in another workbook. The C
cells can be populated with either a number or #N/A N.A.

I'm trying to create a formula that results in the new cell showing
the number if the C cell holds a number, but also shows a 0 if the C
cell shows #N/A N.A.

Here's what I've got (and I've tried both isnumber and isnumeric).
=IF(IsNumber C1:c10, C1:c10, 0).

I'm sure this is pretty simple but I can't make it work. Thanks for
any ideas.



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
IsNumber in VBA (not IsNumeric) Gary''s Student Excel Programming 7 May 11th 06 12:40 AM
Isnumeric Richard Excel Programming 3 February 26th 06 08:20 PM
opposite of IsNumeric thephoenix12 Excel Discussion (Misc queries) 10 June 24th 05 07:37 PM
IsNumeric Test scott Excel Programming 5 February 8th 05 07:59 PM
Not IsNumeric not working - or is it me? Ed Excel Programming 3 January 6th 05 11:30 PM


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