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

How do I make a formula to take the sum of data corresponding to dates only in a 2-week time period?
Extract the number in cell in Google sheets
How do I find the second most frequent value in Google sheet?
Using A Cell To Reference The Name Of Sheet In A Formula For Google Sheets
Using CHOOSE and CONCATENATE with ARRAYFORMULA in Google Sheets
Dynamically convert currency
Conditionally color Google Spreadsheet cell if value matches different column in same row
Ranking Google Sheet Info Uniquely
Multiple IF statements in Google Spread Sheet
If cells equal to X, print all strings in google spreadsheet
How to Set a value with words and Cells
Google Script send email from a sheet in a specific date
Cannot add row to spreadsheet
Hide row numbers and column letters in Google Spreadsheets
If contents of A3 match A2, I want it to turn green
how Name a Cell in google spreadheet and use by name on a formula?

Categories

HOME
notepad++
hyperlink
babeljs
missing-data
webix
qpython
sendgrid-api-v3
resultset
pybossa
linear-algebra
scsi
esoteric-languages
pyramid
nodemcu
enterprise-miner
event-store
exploit
qliksense
comparator
roundup
definitelytyped
motion-detection
wcag
custom-controls
eviews
python-2.6
cart
testbed
dynamic-jasper
xcode7.3
git-rewrite-history
loading
linq-to-objects
naming
dbnull
berkeley-db-je
snapchat
phpdbg
linter
gitlist
insight
git-flow
boo
cpu-cache
offline.js
py2neo
structuremap4
branch-prediction
testrail
node-request
seek
envi
neon
mta
wso2developerstudio
i386
gogs
appscale
nullable
jaunt-api
ascii-art
asyncdisplaykit
directdraw
pypiserver
rubaxa-sortable
cgi-bin
skspritenode
jsvc
canvg
nutiteq
mraid
qtwebengine
mass-assignment
nodelist
ios8-extension
terminate
authlogic
qscrollarea
kendo-dataviz
ie8-compatibility-mode
unit-of-work
gpars
nevron
android-icons
traceability
frameworkelementfactory
pinch
landscape-portrait
cdonts
codebase
appledoc
globals
drupal-fivestar
complex-event-processing

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