LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Foss
 
Posts: n/a
Default

That worked very nicely too! Thanks very much indeed.

I have come up against a problem with the sumproduct function though, I want
the range to be based on the header in the first row. So when people enter
the number one, it looks up question one and uses that range. I've got it
working fine for my simpler things like the countif etc. But I can't make it
work with the sumproduct.

Here's the formula I use in place of typing in the range:
OFFSET(data_height,0,SUM(os,VLOOKUP($B$11,col_lk,2 ,0)))

The 'data_height' named range is just the top to the bottom of the data in
column A.
The 'os' named range is just an offset variable just in case the source data
moves later on.
The 'col_lk' named range is where the details of the fields (ie question
one) and their locations (column 10).

Thanks again,
Foss


"Foss" wrote:

Thank you all very much for your help, that's just what I was looking for!
Perfect!

Now the only problem is that for some reason excel isn't recognizing the
cell value as a number, just a string.
It's very odd, the number appears in the left hand side of the cell. There's
no extra characters in the cell at all. If I manually type over the cell with
the exact same content then it moves to the right of the cell and is
recognised as a number.
I've written a quick script to add a ' to the beginning of each cell in the
used range then delete it again, hopefully that'll sort it!

Thanks again!

Foss

"Foss" wrote:

Good morning all,

I've got a list of results from a questionnaire in a worksheet.
Along the top is the question number, down the side are the people who
answered.

For each question there are five possible answers, they're numbered one to
five.

There's also a Country column which says where the respondent lives.

I want to make a function for each question that can count the occurences of
answer '1' where the country column contains 'UK'.

I can't seem to write a formula to do this for me, it's driving me crazy!
I've struggled with this for nearly three whole days and I'm getting a bit
miffed now!
Any help would be much appreciated.

Cheers,
Foss

 
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
filter and count rexmann Excel Discussion (Misc queries) 2 November 30th 04 02:11 PM
Count occurences between dates DJ Dusty Excel Worksheet Functions 3 November 11th 04 12:25 AM
Count If Formula Mimi Excel Worksheet Functions 0 November 5th 04 11:55 AM
count based on two fields - need quickly JO Excel Worksheet Functions 1 November 1st 04 09:44 PM
Count rows based on multiple criteria Murph Excel Worksheet Functions 1 October 28th 04 07:13 AM


All times are GMT +1. The time now is 05:07 PM.

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

About Us

"It's about Microsoft Excel"