Hobolord
Board Regular
- Joined
- Sep 9, 2015
- Messages
- 64
Hello!
I am using excel 2010 on Windows 7.
I am trying to figure out a formula to return the value of a cell that is in the same column as criteria x and the same row as criteria y. For example:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Ford[/TD]
[TD]Dodge[/TD]
[TD]Chevy[/TD]
[/TR]
[TR]
[TD]2009[/TD]
[TD]9[/TD]
[TD]3[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]2010[/TD]
[TD]4[/TD]
[TD]7[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]2011[/TD]
[TD]5[/TD]
[TD]8[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
I would want my formula to be able to pick the count of 2010 Dodges (7).
The formula that I have now is:
=VLOOKUP($C$6,'HFM DATA'!A3:N500,MATCH($C$9,'HFM DATA'!A3:N500,0),FALSE)
Where C6 is the first criteria and C9 is the second criteria. But it is returning a #NA, and there definitely is a number there.
Does anyone know what I'm doing wrong, or even have a better solution?
Thanks for your time!
I am using excel 2010 on Windows 7.
I am trying to figure out a formula to return the value of a cell that is in the same column as criteria x and the same row as criteria y. For example:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Ford[/TD]
[TD]Dodge[/TD]
[TD]Chevy[/TD]
[/TR]
[TR]
[TD]2009[/TD]
[TD]9[/TD]
[TD]3[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]2010[/TD]
[TD]4[/TD]
[TD]7[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]2011[/TD]
[TD]5[/TD]
[TD]8[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
I would want my formula to be able to pick the count of 2010 Dodges (7).
The formula that I have now is:
=VLOOKUP($C$6,'HFM DATA'!A3:N500,MATCH($C$9,'HFM DATA'!A3:N500,0),FALSE)
Where C6 is the first criteria and C9 is the second criteria. But it is returning a #NA, and there definitely is a number there.
Does anyone know what I'm doing wrong, or even have a better solution?
Thanks for your time!