Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9831

Google Sheets Formula - Auto update row number for cells

$
0
0

I feel this should be easier to find but I'm really struggling. I want to populate a column with names from another tab (depending on the class chosen in A1). When I paste my formula into a cell in Google Sheets, I want the formula to update the row numbers to the current row. Here is the formula pasted into row 2.

=IF(A1=Students!A1,Students!A2, IF(A1=Students!B1,Students!B2,"none"))

So to have this in row 3 I would have to manually update A2 and B2 to A3 and B3, and then the same for every row after that. Is there a way to have A and B match the row they are on?

Thanks in advance!!


Viewing all articles
Browse latest Browse all 9831

Latest Images

Trending Articles



Latest Images