ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   HLookup ??? (https://www.excelbanter.com/excel-discussion-misc-queries/2066-hlookup.html)

scott

HLookup ???
 
I got asked to help analyze the employee survey results.

The spreadsheet is set up with like :
These are the question categories:
Dept Yrs w/Comp Q D Q R
A A 1 3 4 5
B A 1 3 5 6
etc.


I can't come up a formula to calculate the averages by category (i.e.
Q,D,R)

I tried simple arrays like =SUM((D2:AVQ2="G")*D3:AV25), but that errors out.

I tried HLOOKUP, but that only returns the value from one row.

Any suggestions?


Frank Kabel

Hi
try
=AVERAGE(OFFSET(A2:A100,0,MATCH("Q",A2:X2,0)-1))

--
Regards
Frank Kabel
Frankfurt, Germany

scott wrote:
I got asked to help analyze the employee survey results.

The spreadsheet is set up with like :
These are the question categories:
Dept Yrs w/Comp Q D Q R
A A 1 3 4 5
B A 1 3 5 6
etc.


I can't come up a formula to calculate the averages by category (i.e.
Q,D,R)

I tried simple arrays like =SUM((D2:AVQ2="G")*D3:AV25), but that
errors out.
I tried HLOOKUP, but that only returns the value from one row.

Any suggestions?




scott

Thank you. Works great.




Frank Kabel wrote:

Hi
try
=AVERAGE(OFFSET(A2:A100,0,MATCH("Q",A2:X2,0)-1))




All times are GMT +1. The time now is 04:20 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com