Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Date & Time | New Users to Excel | |||
Hyperlinks using R[1]C[1] and offset function in its cell referenc | Excel Worksheet Functions | |||
Conversion | Excel Worksheet Functions | |||
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. | Excel Worksheet Functions | |||
Find a Function to use accross different worksheets | Excel Worksheet Functions |