Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
John
 
Posts: n/a
Default Formatting of the Returned Value of a Formula Q

I have the following formula below which I'm trying to format with regards
to the value returned from EndPeriod. Visble in the returned value field is
2002-19, but when it is returned through the formula below it returns
200219, I want it to display as 2002-19. I've tried inserting
TEXT(EndPeriod,"####-##") in various parts of the formula below but its not
working

Any ideas?

=IF(D9="","",IF(H9="No
Date","",IF(INDEX(EndPeriod,MATCH(D9,EmployeeNames ,0))=0,"No
Date",INDEX(EndPeriod,MATCH(D9,EmployeeNames,0)))) )


  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi John
the problem is that formulas can't change the format. even with using tEXT
you end up with converting a numeric value to a string value.
But if you want to go this way try:

=IF(D9="","",IF(H9="No
Date","",IF(INDEX(EndPeriod,MATCH(D9,EmployeeNames ,0))=0,"No
Date",TEXT(INDEX(EndPeriod,MATCH(D9,EmployeeNames, 0)),"0000-00"))))


"John" wrote:

I have the following formula below which I'm trying to format with regards
to the value returned from EndPeriod. Visble in the returned value field is
2002-19, but when it is returned through the formula below it returns
200219, I want it to display as 2002-19. I've tried inserting
TEXT(EndPeriod,"####-##") in various parts of the formula below but its not
working

Any ideas?

=IF(D9="","",IF(H9="No
Date","",IF(INDEX(EndPeriod,MATCH(D9,EmployeeNames ,0))=0,"No
Date",INDEX(EndPeriod,MATCH(D9,EmployeeNames,0)))) )



  #3   Report Post  
John
 
Posts: n/a
Default

Thanks Frank


"Frank Kabel" wrote in message
...
Hi John
the problem is that formulas can't change the format. even with using tEXT
you end up with converting a numeric value to a string value.
But if you want to go this way try:

=IF(D9="","",IF(H9="No
Date","",IF(INDEX(EndPeriod,MATCH(D9,EmployeeNames ,0))=0,"No
Date",TEXT(INDEX(EndPeriod,MATCH(D9,EmployeeNames, 0)),"0000-00"))))


"John" wrote:

I have the following formula below which I'm trying to format with

regards
to the value returned from EndPeriod. Visble in the returned value field

is
2002-19, but when it is returned through the formula below it returns
200219, I want it to display as 2002-19. I've tried inserting
TEXT(EndPeriod,"####-##") in various parts of the formula below but its

not
working

Any ideas?

=IF(D9="","",IF(H9="No
Date","",IF(INDEX(EndPeriod,MATCH(D9,EmployeeNames ,0))=0,"No
Date",INDEX(EndPeriod,MATCH(D9,EmployeeNames,0)))) )





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
Formula Dependant Conditional Formatting LDanix Excel Discussion (Misc queries) 1 January 13th 05 06:50 PM
Copy conditional formatting across multiple rows? Gil Excel Discussion (Misc queries) 1 January 11th 05 11:27 AM
Concatenation formula loses text wrap formatting DFM Excel Discussion (Misc queries) 5 December 27th 04 01:45 PM
Formatting in the formula bar Beccy Excel Discussion (Misc queries) 2 December 22nd 04 02:41 PM
Formula and Conditionl Formatting Help Phyliss Excel Worksheet Functions 3 November 16th 04 07:40 PM


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