Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Determine Value of Cell?

Here's what I got:
A1=1007543
A2=10C49
B1=formula:mid(A1,3,2) [which displays 07]
B2=formula:mid(A1,3,2) [which displays C4]
C1=formula: B1*1 [which displays 7]
C2=formula: B2*1 [which displays #VALUE]

I'm trying to write a function for C that will display [blank] where
there is a 'character' in B and a [number] where there is a 'number'
in B.

I've tried:
isnumber - they aren't numbers
value - still get #value for C2

Any other ideas?

-Bruce


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,942
Default Determine Value of Cell?

hi
=if(ISNUMBER(B1),B1*1,"")

regards
FSt1

" wrote:

Here's what I got:
A1=1007543
A2=10C49
B1=formula:mid(A1,3,2) [which displays 07]
B2=formula:mid(A1,3,2) [which displays C4]
C1=formula: B1*1 [which displays 7]
C2=formula: B2*1 [which displays #VALUE]

I'm trying to write a function for C that will display [blank] where
there is a 'character' in B and a [number] where there is a 'number'
in B.

I've tried:
isnumber - they aren't numbers
value - still get #value for C2

Any other ideas?

-Bruce



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Determine Value of Cell?

In C1:

=if(iserror(B1*1),"",B1*1) and copy down
--
Gary''s Student - gsnu2007c


" wrote:

Here's what I got:
A1=1007543
A2=10C49
B1=formula:mid(A1,3,2) [which displays 07]
B2=formula:mid(A1,3,2) [which displays C4]
C1=formula: B1*1 [which displays 7]
C2=formula: B2*1 [which displays #VALUE]

I'm trying to write a function for C that will display [blank] where
there is a 'character' in B and a [number] where there is a 'number'
in B.

I've tried:
isnumber - they aren't numbers
value - still get #value for C2

Any other ideas?

-Bruce



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Determine Value of Cell?

If you try it I think you'll find that will always return a blank, as the
MID formula in B retuns text, not a number.

Try =IF(ISNUMBER(--B1),--B1,"")
--
David Biddulph

"FSt1" wrote in message
...
hi
=if(ISNUMBER(B1),B1*1,"")

regards
FSt1

" wrote:

Here's what I got:
A1=1007543
A2=10C49
B1=formula:mid(A1,3,2) [which displays 07]
B2=formula:mid(A1,3,2) [which displays C4]
C1=formula: B1*1 [which displays 7]
C2=formula: B2*1 [which displays #VALUE]

I'm trying to write a function for C that will display [blank] where
there is a 'character' in B and a [number] where there is a 'number'
in B.

I've tried:
isnumber - they aren't numbers
value - still get #value for C2

Any other ideas?

-Bruce





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,942
Default Determine Value of Cell?

hi.
i tested before posting. in 2003, my formula returned numbers when numbers
and blanks when letters.
your formula works also.

regards
FSt1

"David Biddulph" wrote:

If you try it I think you'll find that will always return a blank, as the
MID formula in B retuns text, not a number.

Try =IF(ISNUMBER(--B1),--B1,"")
--
David Biddulph

"FSt1" wrote in message
...
hi
=if(ISNUMBER(B1),B1*1,"")

regards
FSt1

" wrote:

Here's what I got:
A1=1007543
A2=10C49
B1=formula:mid(A1,3,2) [which displays 07]
B2=formula:mid(A1,3,2) [which displays C4]
C1=formula: B1*1 [which displays 7]
C2=formula: B2*1 [which displays #VALUE]

I'm trying to write a function for C that will display [blank] where
there is a 'character' in B and a [number] where there is a 'number'
in B.

I've tried:
isnumber - they aren't numbers
value - still get #value for C2

Any other ideas?

-Bruce








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Determine Value of Cell?

Fascinating! I too am using Excel 2003 (SP2 in my case), and with the OP's
first line, 1007543 in A1, the MID formula in B1 returns 07 as a text
string, and =IF(ISNUMBER(B1),B1*1,"") returns a blank (as ISNUMBER(B1)
returns FALSE). I wonder what different settings you have from what I'm
using, and I wonder whether other users share your result? I'm intrigued
that you need a B1*1 when B1 returns true for ISNUMBER, but I ought by now
to have learned never to be surprised at anything from Excel.
--
David Biddulph

"FSt1" wrote in message
...
hi.
i tested before posting. in 2003, my formula returned numbers when numbers
and blanks when letters.
your formula works also.

regards
FSt1

"David Biddulph" wrote:

If you try it I think you'll find that will always return a blank, as the
MID formula in B retuns text, not a number.

Try =IF(ISNUMBER(--B1),--B1,"")
--
David Biddulph

"FSt1" wrote in message
...
hi
=if(ISNUMBER(B1),B1*1,"")

regards
FSt1

" wrote:

Here's what I got:
A1=1007543
A2=10C49
B1=formula:mid(A1,3,2) [which displays 07]
B2=formula:mid(A1,3,2) [which displays C4]
C1=formula: B1*1 [which displays 7]
C2=formula: B2*1 [which displays #VALUE]

I'm trying to write a function for C that will display [blank] where
there is a 'character' in B and a [number] where there is a 'number'
in B.

I've tried:
isnumber - they aren't numbers
value - still get #value for C2

Any other ideas?

-Bruce








  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,942
Default Determine Value of Cell?

hi
sorry it took so long to get back. having trouble signing into newsgroups.
anyway, my logic was that if it returns a number then multipy else don't.
but i do see your point now. i tested on a number 7 and that is why my
formula tested correct. after further testing, my formula fails as you
perdicted and for the reason you stated.
ya caught me!
thanks for the corrections. i'm be more careful in the future.

Regards
FSt1


"David Biddulph" wrote:

Fascinating! I too am using Excel 2003 (SP2 in my case), and with the OP's
first line, 1007543 in A1, the MID formula in B1 returns 07 as a text
string, and =IF(ISNUMBER(B1),B1*1,"") returns a blank (as ISNUMBER(B1)
returns FALSE). I wonder what different settings you have from what I'm
using, and I wonder whether other users share your result? I'm intrigued
that you need a B1*1 when B1 returns true for ISNUMBER, but I ought by now
to have learned never to be surprised at anything from Excel.
--
David Biddulph

"FSt1" wrote in message
...
hi.
i tested before posting. in 2003, my formula returned numbers when numbers
and blanks when letters.
your formula works also.

regards
FSt1

"David Biddulph" wrote:

If you try it I think you'll find that will always return a blank, as the
MID formula in B retuns text, not a number.

Try =IF(ISNUMBER(--B1),--B1,"")
--
David Biddulph

"FSt1" wrote in message
...
hi
=if(ISNUMBER(B1),B1*1,"")

regards
FSt1

" wrote:

Here's what I got:
A1=1007543
A2=10C49
B1=formula:mid(A1,3,2) [which displays 07]
B2=formula:mid(A1,3,2) [which displays C4]
C1=formula: B1*1 [which displays 7]
C2=formula: B2*1 [which displays #VALUE]

I'm trying to write a function for C that will display [blank] where
there is a 'character' in B and a [number] where there is a 'number'
in B.

I've tried:
isnumber - they aren't numbers
value - still get #value for C2

Any other ideas?

-Bruce









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
How to determine color of a cell? KW Excel Worksheet Functions 2 October 24th 06 07:23 PM
How can I determine cell color? Naum Excel Discussion (Misc queries) 3 May 14th 06 08:26 PM
How can I determine if a cell has a value (#) or a formula (X*Y)? KMH Excel Discussion (Misc queries) 2 December 22nd 05 04:39 PM
in vba what command is used to determine if a particular cell on a particular sheet changed? some kind of event? how to get the old and new value of the cell? Daniel Excel Worksheet Functions 1 June 23rd 05 07:53 PM
Function to determine if any cell in a range is contained in a given cell [email protected] Excel Worksheet Functions 3 February 7th 05 04:19 PM


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