Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Validation List to fill adjacent cell with IF?

I am trying to set up a drop down list (list is set up ok) that has the
months of the year in it to correspond with a number for the month using IF,
but it doesn't seem to work. Here is the formula I was trying in cell A2:

IF(A1="January",(1))*IF(A1="February",(2))...etc.

The value in A2 comes back as 0 or #NAME. Obviously this is not the way to
set this up, but I am unsure how to make it work. Is there somewhere I can
look this up or does someone have a formula to use? I use Excel 2002 and
2003.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Validation List to fill adjacent cell with IF?

How about

=MONTH(DATEVALUE("01-"&A1&"-2000"))

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"braeden13" wrote in message
...
I am trying to set up a drop down list (list is set up ok) that has the
months of the year in it to correspond with a number for the month using
IF,
but it doesn't seem to work. Here is the formula I was trying in cell A2:

IF(A1="January",(1))*IF(A1="February",(2))...etc.

The value in A2 comes back as 0 or #NAME. Obviously this is not the way
to
set this up, but I am unsure how to make it work. Is there somewhere I
can
look this up or does someone have a formula to use? I use Excel 2002 and
2003.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Validation List to fill adjacent cell with IF?

=MONTH(A1&" 1")


"braeden13" wrote:

I am trying to set up a drop down list (list is set up ok) that has the
months of the year in it to correspond with a number for the month using IF,
but it doesn't seem to work. Here is the formula I was trying in cell A2:

IF(A1="January",(1))*IF(A1="February",(2))...etc.

The value in A2 comes back as 0 or #NAME. Obviously this is not the way to
set this up, but I am unsure how to make it work. Is there somewhere I can
look this up or does someone have a formula to use? I use Excel 2002 and
2003.

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
validation (list) & auto fill Charlie7805 Excel Worksheet Functions 2 February 29th 08 07:22 PM
Can Validation against a list do auto-fill in a cell? pastrami_dave Excel Discussion (Misc queries) 5 October 6th 06 10:56 PM
How do i fill the adjacent cell formulas in user form when i press Vicky Excel Discussion (Misc queries) 0 June 5th 06 07:38 AM
Fill cells if adjacent cell match criteria Jess Excel Discussion (Misc queries) 6 June 1st 06 09:18 PM
Auto-fill cell based on adjacent cell information.. sans Excel Worksheet Functions 1 October 17th 05 11:38 PM


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