Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default vlookup formatting problem

Hi, i have a vlookup to a table that has both dates and percentages in. when i do a simple vlookup the data is fine but i cannot do conditional formatting. however, if i change the vlookup to this

=IF(VLOOKUP($E16,tblCurrent,5,FALSE)1,VLOOKUP($E1 6,tblCurrent,5,FALSE)*1,VLOOKUP($E16,tblCurrent,5, FALSE))

the conditional formatting works but anything that is a date becomes a percentage. so 11/26/13 becomes 4160400%

i tried using the text function for the last part of the formula but it didn't work

any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 56
Default vlookup formatting problem

i tried using the text function for the last part of the formula but
it didn't work

any ideas?


Maybe something like:
=TEXT(VLOOKUP(...),IF(VLOOKUP(...)1,"Mmm d, yyyy","0.00%"))
That is, the IF() test determines the format_text parameter of the TEXT() function, and the result is a text value.

If that doesn't meet the need, it'd help to see more edetail about what you're trying to achieve. Apparently, values <=1 should appear as a percentage, while others should appear as a date. Is there something more to it than that?
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
Vlookup problem - unable to get the vlookup property Fred Excel Programming 2 August 22nd 08 05:23 PM
Vlookup and formatting Prixton Excel Discussion (Misc queries) 2 April 25th 08 06:25 PM
VLookup & Formatting Janet Excel Discussion (Misc queries) 5 January 15th 07 03:49 PM
Need Help w/ VLookup Formatting Mike Lindsay Excel Worksheet Functions 10 May 5th 06 02:03 AM
Vlookup and Formatting peter_rivera Excel Discussion (Misc queries) 2 July 11th 05 07:24 PM


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