Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
KR
 
Posts: n/a
Default Using/referencing custom lists

I recently helped a coworker who needed to translate dates into the days of
the week (from a concatenated string), so I used the weekday function to get
the numeric day of the week, then used a vlookup against a list of days to
get the name of the day of the week (e.g. 5= "Thursday")

1 Sunday
2 Monday
3 Tuesday
etc.

I already knew there were custom lists in excel, including the weekday
names, but I wasn't sure how to access them, if they can be accessed at all.
Is there a way to directly access a custom list and avoid a vlookup? I'm
just interested for future reference. I didn't see an array name associated
with custom lists, like "weekdaynames" where I could use
myday = weekdaynames(5) and have it evaluate as "Thursday", or any other
method to pull from my custom lists...

Thanks,
Keith

--
The enclosed questions or comments are entirely mine and don't represent the
thoughts, views, or policy of my employer. Any errors or omissions are my
own.


  #2   Report Post  
Annie
 
Posts: n/a
Default

Hello KR,
If cell A1 has a date in it, in cell B1, to return the day of the week, you
can type

=TEXT(A1,"dddd")

Cheers,
Annie

"KR" wrote:

I recently helped a coworker who needed to translate dates into the days of
the week (from a concatenated string), so I used the weekday function to get
the numeric day of the week, then used a vlookup against a list of days to
get the name of the day of the week (e.g. 5= "Thursday")

1 Sunday
2 Monday
3 Tuesday
etc.

I already knew there were custom lists in excel, including the weekday
names, but I wasn't sure how to access them, if they can be accessed at all.
Is there a way to directly access a custom list and avoid a vlookup? I'm
just interested for future reference. I didn't see an array name associated
with custom lists, like "weekdaynames" where I could use
myday = weekdaynames(5) and have it evaluate as "Thursday", or any other
method to pull from my custom lists...

Thanks,
Keith

--
The enclosed questions or comments are entirely mine and don't represent the
thoughts, views, or policy of my employer. Any errors or omissions are my
own.



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
Custom Lists Debbie Excel Discussion (Misc queries) 1 August 19th 05 04:07 PM
Custom Lists BuddyB Excel Discussion (Misc queries) 3 February 27th 05 10:26 PM
Custom lists - not following defined order Darren Excel Worksheet Functions 1 February 21st 05 02:27 PM
Custom lists - not following defined order [email protected] Excel Worksheet Functions 1 February 21st 05 12:49 PM
HOW DO I USE A CUSTOM LISTS barry New Users to Excel 1 December 29th 04 06:52 AM


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