google-spreadsheet


How to create a dataset from specific cells in Google Sheets


I am trying to write a formula in Google sheets that will select the 2nd highest value from a set of values. The large function works well for this for a range query dataset - e.g If I have values in A1, B1, C1 and D1, I can write the formulate as =large(a1:d1 ; 2). However, I don't want to use the full data set, I'd like to find the 2nd largest value out of A1, C1 and D1 - how can I create a dataset from a specific list of cells (I've tried a comma-seperated list and & and been trying to find something in the Google Drive docs, but not finding a valid way).
Am able to do this using query - select the columns with query to create the new dataset and then pass to large.
=large(query(A1:D1, "select A,B,D") ; 2)
Why not simply
=large({A1, C1, D1}, 2)
Some docs about constructing arbitrary arrays is here: https://support.google.com/docs/answer/6208276?hl=en

Related Links

Google Script code for ordering rows by mouse click
Trendline/Burndown in google sheets
Applying a formula to a whole column: Trouble with arrayformula in sheets
Google spreadsheets convert text date to spreadsheet date
Get unique values for a certain category
Google Spreadsheets: Conditional Formatting if cells add up to more than 100%
Increment a Google Sheet cell by 1 via App Scripts
How to find the first cell in a row where value is not empty and check if the number is less or equal the number in other cell
Using CONCATENATE with Google forms and sheets
Total hours of overtime
Dynamic chart that ranges to the last non-empty cell in a specific column
Alternative to INDIRECT() that would not be affected by adding/deleting coloumns
How do I import data from another sheet and then filter it based on 2 different variables?
Connect 2 GoogleSheets via AppsScript
How do I copy a formula down a column, whilst ensuring that the reference cell changes as I go
I want a Googlesheet to lookup and import values from api

Categories

HOME
android
grok
nunit
zend-framework
jelastic
spring-data-redis
cq5
emscripten
gembox-spreadsheet
interpolation
tvos
syntaxnet
jquery-ui-sortable
enthought
favicon
onedrive-api
flatpak
glyphicons
identity-management
asp.net-core-webapi
asciidoctor-pdf
babel
pagespeed
object-storage
tosca
strongname
froala
dapper-extensions
siri
underscore.js
uitapgesturerecognizer
finagle
mustache
linkedhashmap
jett
video-capture
apache-stanbol
mcustomscrollbar
movilizer
show-hide
clang++
dapper-simplecrud
vaadin-elements
xbmc
custom-font
yii2-user
arules
mach-o
java-websocket
renaming
rmongo
choice
taocp
smartfoxserver
slackware
reporting-services-2012
google-cloud-console
tinkerpop3
mta
refinerycms
kango-framework
stream-processing
uiactionsheet
atan2
vhosts
assertion
opl
sciruby
vigenere
flock
batik
mirror
user-permissions
procedural-programming
cross-join
delayed-execution
at-job
showdialog
machine-instruction
ignite-ui
ios8-extension
drupal-nodes
http-patch
mysql-error-1044
unit-of-work
veracity
node-redis
procedures
u2netdk
umra
timertask
aspmenu
web-garden
entitykey

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App