Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Adam Kroger
 
Posts: n/a
Default Function debug help please

I need a cell to display the number 0703 not 703. All instances of this
cell type will be 4 digits.

The number is entered on one sheet, and then located and returned by a
Vlookup on another

I am using a MID() on the VLOOKUP() cell, and need it to return 7 instead of
70.


  #2   Report Post  
Posted to microsoft.public.excel.misc
Niek Otten
 
Posts: n/a
Default Function debug help please

=text(A1,"0000")

--
Kind regards,

Niek Otten

"Adam Kroger @hotmail.com" <adam_kroger<nospam wrote in message
. ..
I need a cell to display the number 0703 not 703. All instances of this
cell type will be 4 digits.

The number is entered on one sheet, and then located and returned by a
Vlookup on another

I am using a MID() on the VLOOKUP() cell, and need it to return 7 instead
of 70.



  #3   Report Post  
Posted to microsoft.public.excel.misc
Adam Kroger
 
Posts: n/a
Default Function debug help please

So in the MID() command it would read: MID(TEXT(AF4,"0000"),1,2) ?

and will the TEXT() command interfere with arithmatic? The complete formuls
I am using is :
=IF(ISNUMBER(AF4),MAX(ABS(MID($AF$2,1,2) - MID(AF4,1,2)),ABS(MID(AF4,3,2) -
MID(AF4,3,2)))+MAX(0, MIN(ABS(MID($AF$2,1,2) -
MID(AF4,1,2))),ABS((MID(AF4,3,2) -
MID(AF4,3,2)))-ROUND(MAX(ABS(MID($AF$2,1,2) -
MID(AF4,1,2)),ABS(MID(AF4,3,2) - MID(AF4,3,2)))/2,0)),"")

AF4 & AF2 are both numbers that must be 4 digits for it to work properly.

"Niek Otten" wrote in message
...
=text(A1,"0000")

--
Kind regards,

Niek Otten

"Adam Kroger @hotmail.com" <adam_kroger<nospam wrote in message
. ..
I need a cell to display the number 0703 not 703. All instances of this
cell type will be 4 digits.

The number is entered on one sheet, and then located and returned by a
Vlookup on another

I am using a MID() on the VLOOKUP() cell, and need it to return 7 instead
of 70.





  #4   Report Post  
Posted to microsoft.public.excel.misc
Adam Kroger
 
Posts: n/a
Default Function debug help please

I figured out how to use the Formatnumbercustom0000
Thanks for your assistance. Niek, the solution you offered game me the key
to figure it out.




"Adam Kroger @hotmail.com" <adam_kroger<nospam wrote in message
...
So in the MID() command it would read: MID(TEXT(AF4,"0000"),1,2) ?

and will the TEXT() command interfere with arithmatic? The complete
formuls I am using is :
=IF(ISNUMBER(AF4),MAX(ABS(MID($AF$2,1,2) -
MID(AF4,1,2)),ABS(MID(AF4,3,2) - MID(AF4,3,2)))+MAX(0,
MIN(ABS(MID($AF$2,1,2) - MID(AF4,1,2))),ABS((MID(AF4,3,2) -
MID(AF4,3,2)))-ROUND(MAX(ABS(MID($AF$2,1,2) -
MID(AF4,1,2)),ABS(MID(AF4,3,2) - MID(AF4,3,2)))/2,0)),"")

AF4 & AF2 are both numbers that must be 4 digits for it to work properly.

"Niek Otten" wrote in message
...
=text(A1,"0000")

--
Kind regards,

Niek Otten

"Adam Kroger @hotmail.com" <adam_kroger<nospam wrote in message
. ..
I need a cell to display the number 0703 not 703. All instances of this
cell type will be 4 digits.

The number is entered on one sheet, and then located and returned by a
Vlookup on another

I am using a MID() on the VLOOKUP() cell, and need it to return 7
instead of 70.







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
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Hyperlinks using R[1]C[1] and offset function in its cell referenc Elijah-Dadda Excel Worksheet Functions 0 March 5th 05 03:31 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM
Find a Function to use accross different worksheets R. Hale Excel Worksheet Functions 3 November 25th 04 07:07 AM


All times are GMT +1. The time now is 11:48 PM.

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"