Hi
I have the following formula:
=SUMIFS(marginjuly,conjuly,K$1)
where K$1 is the name of the consultant,
This currently looks at my data in "marginjuly" and adds up all the results of matching consultant
eg:
Consultant Name
[TABLE="width: 500"]
<tbody>[TR]
[TD]consjuly
[/TD]
[TD]marginjuly[/TD]
[TD]Month
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Peter
[/TD]
[TD]1000
[/TD]
[TD]July
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Peter
[/TD]
[TD]500
[/TD]
[TD]July
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]John
[/TD]
[TD]1200
[/TD]
[TD]July
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sue
[/TD]
[TD]11
[/TD]
[TD]July
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]John
[/TD]
[TD]500
[/TD]
[TD]July
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Peter
[/TD]
[TD]750
[/TD]
[TD]July
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Peter
[/TD]
[TD]955
[/TD]
[TD]July
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]John
[/TD]
[TD]300
[/TD]
[TD]July
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sue
[/TD]
[TD]50
[/TD]
[TD]July
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The formula nicely gets me the consultant margin for the month indicated, but i would like to be able to change the month and have the formula change with the month variable.
so august would need to look like this: =SUMIFS(marginaugust,conaugust,K$1)
How can I selected a range within the formula based on a date variable.
I know i could possibly change my raw data and simply use multiple criteria in the sumifs formula, however I already have this set up in names ranges throughout spreadsheet.
Thanks
Peter
I have the following formula:
=SUMIFS(marginjuly,conjuly,K$1)
where K$1 is the name of the consultant,
This currently looks at my data in "marginjuly" and adds up all the results of matching consultant
eg:
Consultant Name
[TABLE="width: 500"]
<tbody>[TR]
[TD]consjuly
[/TD]
[TD]marginjuly[/TD]
[TD]Month
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Peter
[/TD]
[TD]1000
[/TD]
[TD]July
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Peter
[/TD]
[TD]500
[/TD]
[TD]July
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]John
[/TD]
[TD]1200
[/TD]
[TD]July
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sue
[/TD]
[TD]11
[/TD]
[TD]July
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]John
[/TD]
[TD]500
[/TD]
[TD]July
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Peter
[/TD]
[TD]750
[/TD]
[TD]July
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Peter
[/TD]
[TD]955
[/TD]
[TD]July
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]John
[/TD]
[TD]300
[/TD]
[TD]July
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sue
[/TD]
[TD]50
[/TD]
[TD]July
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The formula nicely gets me the consultant margin for the month indicated, but i would like to be able to change the month and have the formula change with the month variable.
so august would need to look like this: =SUMIFS(marginaugust,conaugust,K$1)
How can I selected a range within the formula based on a date variable.
I know i could possibly change my raw data and simply use multiple criteria in the sumifs formula, however I already have this set up in names ranges throughout spreadsheet.
Thanks
Peter