Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Comparing MONTH and YEAR inside Formula ??
Hello:
I have this below compare in a CELL... =SUMPRODUCT((Clarity!$A$1:$A$3000=A27)*(Clarity!$B $1:$B$3000="January 2012"),Clarity!$E$1:$E$3000) Everything works but I need to insert something other than a literal "2012" when the year flips to 2013 or I will have to update 12 CELLS for 17 people every year... is there a way to insert a MACRO for each of the twelve monthly CELLS, such as; ="January "& NOW(YEAR) or something different that works???? Thanks in advance |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Comparing MONTH and YEAR inside Formula ??
Hi,
Am Sat, 22 Dec 2012 17:25:51 +0000 schrieb FPerg: =SUMPRODUCT((Clarity!$A$1:$A$3000=A27)*(Clarity!$B $1:$B$3000="January 2012"),Clarity!$E$1:$E$3000) Everything works but I need to insert something other than a literal "2012" when the year flips to 2013 or I will have to update 12 CELLS for 17 people every year... is there a way to insert a MACRO for each of the twelve monthly CELLS, such as; ="January "& NOW(YEAR) or something different that works???? if you want a formula, try: =SUMPRODUCT(--(Clarity!$A$1:$A$3000=A27),--(MONTH(Clarity!$B$1:$B$3000)=1),--(YEAR(Clarity!$B$1:$B$3000)=YEAR(TODAY())),Clarity !$E$1:$E$3000) for January of the current year Regards Claus Busch -- Win XP PRof SP2 / Vista Ultimate SP2 Office 2003 SP2 /2007 Ultimate SP2 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Extract Month and year from Cell containing date, month, year & time | Excel Worksheet Functions | |||
Year as well as month in formula | Excel Discussion (Misc queries) | |||
Tell me which "season" (Month/Day through Month/Day) a date(Month/Day/Year) falls in (any year)??? | Excel Discussion (Misc queries) | |||
IF statement comparing month and year separately | Excel Worksheet Functions | |||
Formula to return last day of month for each month in year? | Excel Programming |