Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

extract a specific field from array in Google Sheets

I am executing a function in Google Sheets which is resulting into an array output like below

Col1   Col2

A        B

10       20  

What I want is to fetch only 20 and I don't want other rows and columns to be printed. I tried using function array_contrain but that will always print the first column and row. Is there any way to get only a single field from an array.

like image 780
ROCHIT SHARMA Avatar asked May 17 '26 13:05

ROCHIT SHARMA


1 Answers

use INDEX or wrap your formula into INDEX instead of ARRAY_CONSTRAIN

for example:

=INDEX(A:B, 3, 2)

0

like image 151
player0 Avatar answered May 19 '26 03:05

player0



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!