Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have a range of 14 rows by 12 columns. Each column represents a
different month. How can I determine which column to use, if I only want to use the column for the current month? |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
lets say cols A-L are Jan thru Dec
=MONTH(TODAY()) formatted as an integer will tell you which column to use for the current date. -- Gary's Student "Mike Griffin" wrote: I have a range of 14 rows by 12 columns. Each column represents a different month. How can I determine which column to use, if I only want to use the column for the current month? |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
The function TODAY() will give today's date. With the MONTH( ) function
wrapped around this, you will get the month (eg 3 for March), so you will need to add something to this to suit your range. Say for example your range starts in column F for January (i.e. the 6th column), then this formula: =MONTH(TODAY())+5 would give the column number. If you want this as a letter, then this amendment: =CHAR(64+MONTH(TODAY())+5) would suffice. Hope this helps. Pete |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Yes, that gets me the column!
Now, my question is how to use that column letter or number in another formula concatenated with the row number. eg. =IF($(CHAR(64+MONTH(TODAY())+5)$3='NO', blah, blah)) I hope that makes sense |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I actually figured it out.
=ADDRESS(3, MONTH(TODAY())+8, 3) Thanks |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Glad you got it working, Mike. Thanks for feeding back.
Pete |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
HELP: Comparison IF statement | Excel Worksheet Functions | |||
run a macro in a locked cell | Excel Discussion (Misc queries) | |||
Positioning Numeric Values Resulting from 6 Column Array Formula | Excel Worksheet Functions | |||
Help PLEASE! Not sure what answer is: Match? Index? Other? | Excel Worksheet Functions | |||
Count cells based on date range in another column | New Users to Excel |