#1   Report Post  
scott
 
Posts: n/a
Default 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?

  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

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?



  #3   Report Post  
scott
 
Posts: n/a
Default

Thank you. Works great.




Frank Kabel wrote:

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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:32 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"