Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have an Excel spreadsheet with column headings (in Row 1) - some of which
are dates (past, present and future, one for each month) and others are text. Can anyone please help me with a formula that will give the column number for the column with the heading that contains a date with the same month as today(). It would be simpler if there weren't the text headings as well to contend with! Many thanks, V |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=MATCH(1,(MONTH(TODAY())=MONTH(1:1))*(YEAR(TODAY() )=YEAR(1:1)),0)
which is an array formula, it should be committed with Ctrl-Shift-Enter, not just Enter. Excel will automatically enclose the formula in braces (curly brackets), do not try to do this manually. When editing the formula, it must again be array-entered. -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Victor Delta" wrote in message ... I have an Excel spreadsheet with column headings (in Row 1) - some of which are dates (past, present and future, one for each month) and others are text. Can anyone please help me with a formula that will give the column number for the column with the heading that contains a date with the same month as today(). It would be simpler if there weren't the text headings as well to contend with! Many thanks, V |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
"Bob Phillips" wrote in message
... =MATCH(1,(MONTH(TODAY())=MONTH(1:1))*(YEAR(TODAY() )=YEAR(1:1)),0) which is an array formula, it should be committed with Ctrl-Shift-Enter, not just Enter. Excel will automatically enclose the formula in braces (curly brackets), do not try to do this manually. When editing the formula, it must again be array-entered. Bob Many thanks - works a treat! Regards, V |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
It really depends on how your months are entered in the headings, for example if they are Jan, Feb,... then the following formula will return 9 for september, the current month: =MATCH(TEXT(NOW(),"mmm"),A1:L1) where A1:L1 are your month titles. -- Thanks, Shane Devenshire "Victor Delta" wrote: I have an Excel spreadsheet with column headings (in Row 1) - some of which are dates (past, present and future, one for each month) and others are text. Can anyone please help me with a formula that will give the column number for the column with the heading that contains a date with the same month as today(). It would be simpler if there weren't the text headings as well to contend with! Many thanks, V |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
"ShaneDevenshire" wrote in
message ... Hi, It really depends on how your months are entered in the headings, for example if they are Jan, Feb,... then the following formula will return 9 for september, the current month: =MATCH(TEXT(NOW(),"mmm"),A1:L1) where A1:L1 are your month titles. Shane Thanks for suggesting this but, even changing the bit in inverted commas to "mmm yy" to correspond to the month formatting I'm using, still gives an erroneous output. Regards, V |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2002 Formula: Urgent Conditional Formula Required Right Away - if possible | Excel Discussion (Misc queries) | |||
Build excel formula using field values as text in the formula | Excel Worksheet Functions | |||
Excel Formula Doesn't Execute (Shows formula-not the calcuation) | Excel Discussion (Misc queries) | |||
Excel 2002 formula displayed not value formula option not checked | Excel Worksheet Functions | |||
How do I view formula results intead of formula in excel? | Excel Worksheet Functions |