PC Review


Reply
Thread Tools Rate Thread

How do I do "Range(A1).text" in a XL forumla?

 
 
Maury Markowitz
Guest
Posts: n/a
 
      6th Oct 2008
I do almost all of my coding in VBA, not Excel, so this one is new to
me...

I have an external lookup plug-in (BBG) that returns "#N/A" if the
lookup fails. I have populated a column in my sheet with these
formulas, some of which return #N/A, and others that return numbers. I
would like to make a formula that uses the number if it's there, and
ignores it if it's #N/A.

In code I would simply refer do this:

Left(Range(A1).text,1) <> "#"

But how do I do this in an XL formula?

Maury
 
Reply With Quote
 
 
 
 
Jim Thomlinson
Guest
Posts: n/a
 
      6th Oct 2008
There is logical function ISNA so something like

=if(ISNA(A1), "Error", "OK")
--
HTH...

Jim Thomlinson


"Maury Markowitz" wrote:

> I do almost all of my coding in VBA, not Excel, so this one is new to
> me...
>
> I have an external lookup plug-in (BBG) that returns "#N/A" if the
> lookup fails. I have populated a column in my sheet with these
> formulas, some of which return #N/A, and others that return numbers. I
> would like to make a formula that uses the number if it's there, and
> ignores it if it's #N/A.
>
> In code I would simply refer do this:
>
> Left(Range(A1).text,1) <> "#"
>
> But how do I do this in an XL formula?
>
> Maury
>

 
Reply With Quote
 
ND Pard
Guest
Posts: n/a
 
      6th Oct 2008
=IF(ISNA(A1),"",A1)

"Maury Markowitz" wrote:

> I do almost all of my coding in VBA, not Excel, so this one is new to
> me...
>
> I have an external lookup plug-in (BBG) that returns "#N/A" if the
> lookup fails. I have populated a column in my sheet with these
> formulas, some of which return #N/A, and others that return numbers. I
> would like to make a formula that uses the number if it's there, and
> ignores it if it's #N/A.
>
> In code I would simply refer do this:
>
> Left(Range(A1).text,1) <> "#"
>
> But how do I do this in an XL formula?
>
> Maury
>

 
Reply With Quote
 
Maury Markowitz
Guest
Posts: n/a
 
      6th Oct 2008
Thanks!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: If Range("AZ" & intCounter).Text = "" Then staeri@gmail.com Microsoft Excel Programming 7 21st Jan 2008 02:38 PM
Range("B2").AutoFill Destination:=Range("GX1", ActiveCell) ... Fails but why? Shaka215@gmail.com Microsoft Excel Programming 0 13th Mar 2007 02:16 AM
Syntax error - =IIf(text Like "0?", "", text) --- =IIf([text] = "0?", Null, "Some Caption Text") Ixak Microsoft Access Reports 8 15th Dec 2006 07:58 AM
use variable in Workbooks("book1").Worksheets("sheet1").Range("a1" =?Utf-8?B?THVj?= Microsoft Excel Programming 2 28th Sep 2005 08:37 PM
Sum a range of cells with without the first character "text" & "numerical" John Microsoft Excel Worksheet Functions 5 12th Sep 2004 07:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:44 PM.