Does this function ignore invisible cells (autofilter) ? If not, what could be an alternative
M muchacho Jun 26, 2006 #1 Does this function ignore invisible cells (autofilter) ? If not, what could be an alternative
M Marcelo Jun 26, 2006 #2 use subtotal(9,range) on the sunif to ignore hides rows HTH regards from Brazil Marcelo "muchacho" escreveu:
use subtotal(9,range) on the sunif to ignore hides rows HTH regards from Brazil Marcelo "muchacho" escreveu:
B Bob Phillips Jun 26, 2006 #4 what makes you think it doesn't? -- HTH Bob Phillips (replace xxxx in the email address with gmail if mailing direct)
what makes you think it doesn't? -- HTH Bob Phillips (replace xxxx in the email address with gmail if mailing direct)
M Marcelo Jun 26, 2006 #5 Hi Bob, I have type without test, and when I have tried it doesn't work here, course I did something bad, if you say it works. It works. Regards and thanks for the feedback Marcelo "Bob Phillips" escreveu:
Hi Bob, I have type without test, and when I have tried it doesn't work here, course I did something bad, if you say it works. It works. Regards and thanks for the feedback Marcelo "Bob Phillips" escreveu:
M muchacho Jun 26, 2006 #6 Surely I need an IF statement though. What I want is for it to add some numbers up but only if the cel equals X. For example ... Position - Value 2 - 33 2 - 44 4 - 66 5 - 33 6 - 22 So here I would like to display the total of position 2. Which would b 33+44. I use autofilter so I only want it to work with the numbers in view. I'm wondering what I would use to have the SubTotal mixed with an I statement
Surely I need an IF statement though. What I want is for it to add some numbers up but only if the cel equals X. For example ... Position - Value 2 - 33 2 - 44 4 - 66 5 - 33 6 - 22 So here I would like to display the total of position 2. Which would b 33+44. I use autofilter so I only want it to work with the numbers in view. I'm wondering what I would use to have the SubTotal mixed with an I statement
B Bob Phillips Jun 26, 2006 #8 That is different, introducing a condition. Try this =SUMPRODUCT(SUBTOTAL(9,OFFSET($B$1,ROW($B$1:$B$200)-ROW($B$1),,1))*(A1:A200= "X")) -- HTH Bob Phillips (replace xxxx in the email address with gmail if mailing direct)
That is different, introducing a condition. Try this =SUMPRODUCT(SUBTOTAL(9,OFFSET($B$1,ROW($B$1:$B$200)-ROW($B$1),,1))*(A1:A200= "X")) -- HTH Bob Phillips (replace xxxx in the email address with gmail if mailing direct)
M muchacho Jun 26, 2006 #9 No no no, this will add ALL the visible values up. Position - Word - Value 3 - Hot- 45 5 - Hot - 23 5 - Hot - 32 7 - Hot - 44 2 - Hot - 22 Ok, now in this example, I'd only want to calculate the value of HO when it was in 5th position. I need an IF statement somewhere. SumIf would include the invisible cells as well wouldn't it? I need something like Add totals for the word HOT (or whichever word I've filtered out to) i position 5
No no no, this will add ALL the visible values up. Position - Word - Value 3 - Hot- 45 5 - Hot - 23 5 - Hot - 32 7 - Hot - 44 2 - Hot - 22 Ok, now in this example, I'd only want to calculate the value of HO when it was in 5th position. I need an IF statement somewhere. SumIf would include the invisible cells as well wouldn't it? I need something like Add totals for the word HOT (or whichever word I've filtered out to) i position 5
M muchacho Jun 26, 2006 #10 Hi Bob, Can you talk me through the function you just gave to me ... what's i doing
M muchacho Jun 26, 2006 #11 I tried the above but couldn't get it to work. Column C is where my keywords are Column E is position. Column G is the number of clicks that keyword has received Now, say I filter out C for the keyword 'test' I then want it to display the total amount of clicks (column G) when it's in position 1 (1st). Can anybody think of a formula I can try? The formula is on a different worksheet.
I tried the above but couldn't get it to work. Column C is where my keywords are Column E is position. Column G is the number of clicks that keyword has received Now, say I filter out C for the keyword 'test' I then want it to display the total amount of clicks (column G) when it's in position 1 (1st). Can anybody think of a formula I can try? The formula is on a different worksheet.
B Bob Phillips Jun 26, 2006 #12 =SUMPRODUCT(SUBTOTAL(9,OFFSET(Sheet2!$G$1,ROW(Sheet2!$G$1:$G$200)-ROW(Sheet2 !$G$1),,1))* (Sheet2!$E$1:$E$200=1)) -- HTH Bob Phillips (replace xxxx in the email address with gmail if mailing direct)
=SUMPRODUCT(SUBTOTAL(9,OFFSET(Sheet2!$G$1,ROW(Sheet2!$G$1:$G$200)-ROW(Sheet2 !$G$1),,1))* (Sheet2!$E$1:$E$200=1)) -- HTH Bob Phillips (replace xxxx in the email address with gmail if mailing direct)
M muchacho Jun 26, 2006 #13 I tried it but just can't get it to work. If anybody would be happy with downloading the file and taking a loo at it ... http://www.realearners.biz/stats.xls I've only got a few words in, as the original is over 6mb
I tried it but just can't get it to work. If anybody would be happy with downloading the file and taking a loo at it ... http://www.realearners.biz/stats.xls I've only got a few words in, as the original is over 6mb
B Bob Phillips Jun 27, 2006 #14 I have a solution but I am failing to upload it, will try again tomorrow morning . I changed your data a bit, to better show it working. -- HTH Bob Phillips (replace xxxx in the email address with gmail if mailing direct)
I have a solution but I am failing to upload it, will try again tomorrow morning . I changed your data a bit, to better show it working. -- HTH Bob Phillips (replace xxxx in the email address with gmail if mailing direct)
B Bob Phillips Jun 27, 2006 #16 I couldn't use my favourite temporary file server, so I loaded it here http://xldynamic.com/example code/NG - muchacho - Sumif query - stats.xls -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct)
I couldn't use my favourite temporary file server, so I loaded it here http://xldynamic.com/example code/NG - muchacho - Sumif query - stats.xls -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct)
M muchacho Jun 27, 2006 #17 Thanks for the help. So what would I need to change if I have like 40,000 rows of data? (no just the 3 when you looked at it). I tried changing the $G$1:$G$20 to $G$1:$G$40000 and it displayed th #N/A sign
Thanks for the help. So what would I need to change if I have like 40,000 rows of data? (no just the 3 when you looked at it). I tried changing the $G$1:$G$20 to $G$1:$G$40000 and it displayed th #N/A sign
B Bob Phillips Jun 27, 2006 #18 You have to keep ranges the same size, so if you change one, you need to change the other commensurately. -- HTH Bob Phillips (replace xxxx in the email address with gmail if mailing direct)
You have to keep ranges the same size, so if you change one, you need to change the other commensurately. -- HTH Bob Phillips (replace xxxx in the email address with gmail if mailing direct)
M muchacho Jun 27, 2006 #19 Any idea why, if I copy and paste data into the spreadsheet the formula doesn't work at just brings up zeros?
Any idea why, if I copy and paste data into the spreadsheet the formula doesn't work at just brings up zeros?
B Bob Phillips Jun 27, 2006 #20 Not without seeing it. -- HTH Bob Phillips (replace xxxx in the email address with gmail if mailing direct)
Not without seeing it. -- HTH Bob Phillips (replace xxxx in the email address with gmail if mailing direct)