Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 31
Default If statement for timezones

I want to make a formula that will convert standard state names to time
zones. I don't want to have to nest a whole bunch of if statements though,
is there any way to do this without a macro? Is it possible to set up an IF
statement that says =if(A1="WA" OR "CA" OR "another state") then = West
Coast. I don't need it to actually give me a time, just classify them by
time zone.

Thanks in advance!!!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 287
Default If statement for timezones

Set up a table, e.g. state abbreviations in Y2:Y50, asociated time zone name
in Z2:Z50 then use the formula

=VLOOKUP(A1,$Y$2:$Z$50,2,0)

to return the timezone name where a specific state abbreviation is contained
in A1

"Still Learning" wrote:

I want to make a formula that will convert standard state names to time
zones. I don't want to have to nest a whole bunch of if statements though,
is there any way to do this without a macro? Is it possible to set up an IF
statement that says =if(A1="WA" OR "CA" OR "another state") then = West
Coast. I don't need it to actually give me a time, just classify them by
time zone.

Thanks in advance!!!

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
Question using dates in a statement Wink20TCU Excel Discussion (Misc queries) 2 January 3rd 07 03:33 PM
SQL concatenation statement CLamar Excel Discussion (Misc queries) 0 June 29th 06 01:58 PM
SET statement tutorial Daminc Excel Discussion (Misc queries) 13 January 17th 06 04:47 PM
If statement Matt Montagliano Excel Discussion (Misc queries) 1 September 8th 05 08:47 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM


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