Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
R-P
 
Posts: n/a
Default #N/A is not text, cannot use it in functions

In short: Two tables, one with serialnumbers from 0 through 100
The other with ONLY selected numbers from this range from 0-100.

I added the info from the second table into the first (in a new column) with
'VLOOKUP' ("=VLOOKUP(A100,Sheet2!A:D,3,FALSE)")
All serialnumbers which weren't in the first table, now, obviously, feature
a "#N/A" (No value available) 'marker' or 'sign' or text.
Before and after formatting this column to TEXT (after copying the whole
sheet to a new sheet and pasting 'VALUES' only), following function refuses
to work:

"=IF(J2="#N/A","",IF(J2="BT","BT",""))"

The outcome is "#N/A" instead of " " when the inputfield shows "#N/A"

There is ONE way in which I CAN get it to function, and that's by copying
the "#N/A" from J2 and pasting it into the formula, but I have to do this for
EVERY of the 36000 rows.....(No way José.....), because copying this function
down, doesn't make it work for any following #N/A's

So even though I converted it to TEXT, there is still som row-dependent
information lurking in the back which messes up my function?????

Any thoughts?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default #N/A is not text, cannot use it in functions

=IF(ISNA(J2),"",IF(J2="BT","BT",""))"

--

HTH

RP
(remove nothere from the email address if mailing direct)


"R-P" wrote in message
...
In short: Two tables, one with serialnumbers from 0 through 100
The other with ONLY selected numbers from this range from 0-100.

I added the info from the second table into the first (in a new column)

with
'VLOOKUP' ("=VLOOKUP(A100,Sheet2!A:D,3,FALSE)")
All serialnumbers which weren't in the first table, now, obviously,

feature
a "#N/A" (No value available) 'marker' or 'sign' or text.
Before and after formatting this column to TEXT (after copying the whole
sheet to a new sheet and pasting 'VALUES' only), following function

refuses
to work:

"=IF(J2="#N/A","",IF(J2="BT","BT",""))"

The outcome is "#N/A" instead of " " when the inputfield shows "#N/A"

There is ONE way in which I CAN get it to function, and that's by copying
the "#N/A" from J2 and pasting it into the formula, but I have to do this

for
EVERY of the 36000 rows.....(No way José.....), because copying this

function
down, doesn't make it work for any following #N/A's

So even though I converted it to TEXT, there is still som row-dependent
information lurking in the back which messes up my function?????

Any thoughts?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Lee Harris
 
Posts: n/a
Default #N/A is not text, cannot use it in functions


"R-P" wrote in message
...
In short: Two tables, one with serialnumbers from 0 through 100
The other with ONLY selected numbers from this range from 0-100.

I added the info from the second table into the first (in a new column)
with
'VLOOKUP' ("=VLOOKUP(A100,Sheet2!A:D,3,FALSE)")
All serialnumbers which weren't in the first table, now, obviously,
feature
a "#N/A" (No value available) 'marker' or 'sign' or text.
Before and after formatting this column to TEXT (after copying the whole
sheet to a new sheet and pasting 'VALUES' only), following function
refuses
to work:

"=IF(J2="#N/A","",IF(J2="BT","BT",""))"

The outcome is "#N/A" instead of " " when the inputfield shows "#N/A"

There is ONE way in which I CAN get it to function, and that's by copying
the "#N/A" from J2 and pasting it into the formula, but I have to do this
for
EVERY of the 36000 rows.....(No way José.....), because copying this
function
down, doesn't make it work for any following #N/A's

So even though I converted it to TEXT, there is still som row-dependent
information lurking in the back which messes up my function?????

Any thoughts?


try


=IF(ISNA(J2),"",IF(J2="BT","BT",""))


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
R-P
 
Posts: n/a
Default #N/A is not text, cannot use it in functions

Thanks you both, it did solve my problem (which I should be satisfied with)
but it didn't answer my question what is wrong with treating it as text.

I had to copy the '#N/A' values from e.g. row 10 to get row 1 to work (row 1
was the row where I had copied the value from to use in the function).
So by copying a value I changed its essence (isn't that kind of like the
Heisenberg principle???)

So an answer to this twilight-zone behaviour would still be welcome... :)
But for now I'm happy that I can go on with my work and that I eliminated
about a 1000 out of the 35000 items to be manually investigated thanks to
your formulas...

"Lee Harris" wrote:


"R-P" wrote in message
...
In short: Two tables, one with serialnumbers from 0 through 100
The other with ONLY selected numbers from this range from 0-100.

I added the info from the second table into the first (in a new column)
with
'VLOOKUP' ("=VLOOKUP(A100,Sheet2!A:D,3,FALSE)")
All serialnumbers which weren't in the first table, now, obviously,
feature
a "#N/A" (No value available) 'marker' or 'sign' or text.
Before and after formatting this column to TEXT (after copying the whole
sheet to a new sheet and pasting 'VALUES' only), following function
refuses
to work:

"=IF(J2="#N/A","",IF(J2="BT","BT",""))"

The outcome is "#N/A" instead of " " when the inputfield shows "#N/A"

There is ONE way in which I CAN get it to function, and that's by copying
the "#N/A" from J2 and pasting it into the formula, but I have to do this
for
EVERY of the 36000 rows.....(No way José.....), because copying this
function
down, doesn't make it work for any following #N/A's

So even though I converted it to TEXT, there is still som row-dependent
information lurking in the back which messes up my function?????

Any thoughts?


try


=IF(ISNA(J2),"",IF(J2="BT","BT",""))



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
Cell text based on 4 condition test Bob Wall Excel Worksheet Functions 3 November 16th 05 07:34 PM
Text Wrapping JMB Excel Discussion (Misc queries) 0 July 29th 05 02:41 AM
Create a function to return text if two logical functions are true janeyt Excel Worksheet Functions 2 March 19th 05 08:49 PM
Autofitting a row Josephine Excel Discussion (Misc queries) 2 March 3rd 05 03:37 PM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM


All times are GMT +1. The time now is 07:07 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"