Hi ,
It looks like you're using an ad blocker.



The revenue generated from the adverts on the site is a critical part of our funding - and it's because of these ads that I can offer the site for free. But using the site for free AND blocking the ads doesn't feel like a great thing to do, which is why this box is so large and inconvenient. Some sites will completely block your access, but I'm not doing that - I'm appealing to your good nature instead. Did you know that you can allow ads for specific sites, whilst still blocking them on others?

Thanks,
Ian Williams aka Fetch
or for an ad-free Fetcheveryone experience!

SpreadEveryone: The Fetchland Excel wire

102 watchers
Jul 2024
3:05pm, 14 Jul 2024
23,134 posts
  • Quote
  • Pin
ChrisHB
Anyone familiar with the SQL query function on Google sheets?

if I have a column containing
A
B
A
B
A
then in SQL I can write select column, count(*) from table group by column and get the answer
A 3
B 2

Google sheets has SELECT and COUNT and GROUP BY and doesn't need FROM TABLE but I am at a loss to know how to get my desired result.
Jul 2024
7:05pm, 14 Jul 2024
23,136 posts
  • Quote
  • Pin
ChrisHB
I've almost found a way - with any luck it'll not be a cul-de-sac!
Jul 2024
7:27pm, 14 Jul 2024
25,112 posts
  • Quote
  • Pin
larkim
I've used SQL within an =htmlimport() function I think in GSheets, I think you wrap it all in a =query() function don't you?
Oct 2024
6:17pm, 5 Oct 2024
20,122 posts
  • Quote
  • Pin
NDWDave
one from the archive
Oct 2024
8:50pm, 5 Oct 2024
76,619 posts
  • Quote
  • Pin
GlennR
:)
Oct 2024
9:11pm, 7 Oct 2024
5,371 posts
  • Quote
  • Pin
run free
Why did the Excel file go to therapy? Because it had too many unresolved cells! 😄
Oct 2024
11:14am, 9 Oct 2024
3,878 posts
  • Quote
  • Pin
GeneHunt59
Hi. I'm trying to create a formula that will do the sum of the 10 highest values in a row for my running club's championship spreadsheet. It's straightforward if nobody runs more than 10 races to use the sum function, but some run more than 10. I've tried the following formula:

=SUM(LARGE(C2:V2, {1,2,3,4,5,6,7,8,9,10}))

This is fine if a member runs 10 or more races, but if they run 9 or less it returns

#NUM!

I need a formula that returns the total if there are 10 or more or less than 10 races ran, so need to add a condition?

Any help much appreciated
Oct 2024
11:21am, 9 Oct 2024
25,769 posts
  • Quote
  • Pin
larkim
From a quick google, this might help

=SUMPRODUCT(LARGE(range, ROW(INDIRECT("1:"&MIN(n, COUNT(range))))))

e.g. if race results are in columns A:F and you want a max of 4 entries counting:-

=SUMPRODUCT(LARGE(A1:F1, ROW(INDIRECT("1:"&MIN(4, COUNT(A1:F1))))))
CBN
Oct 2024
11:26am, 9 Oct 2024
121 posts
  • Quote
  • Pin
CBN
Would

=IF(COUNT(C2:V2)<10,SUM(C2:V2),SUM(LARGE(C2:V2,SEQUENCE(10))))

work?

Alternatively,

=IFERROR(SUM(LARGE(C2:V2, {1,2,3,4,5,6,7,8,9,10})),SUM(C2:V2))
um
Oct 2024
11:42am, 9 Oct 2024
8,925 posts
  • Quote
  • Pin
um
Would changing your formula to inlcude "" or zero in the {string set} solve it - with or without converting blanks in the row to zeroes?

About This Thread

Maintained by John66
This is bugging me, I'm sure it should be much easier

A1 has 25/6/2010
B1 has 24/6/2013

So t...
  • Show full description...

Related Threads

  • excel
  • support
  • tech
  • work

Report This Content

You can report any content you believe to be unsafe. Please let me know why you believe this content is unsafe by choosing a category below.



Thank you for your report. The content will be assessed as soon as possible.










Back To Top

Tag A User

To tag a user, start typing their name here:
X

Free training & racing tools for runners, cyclists, swimmers & walkers.

Fetcheveryone lets you analyse your training, find races, plot routes, chat in our forum, get advice, play games - and more! Nothing is behind a paywall, and it'll stay that way thanks to our awesome community!
Get Started
Click here to join 114,318 Fetchies!
Already a Fetchie? Sign in here