Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to give reference to a row number in excel formula?

I need this formula: C(n) = B(n)*A5. (n is the row number)

Literally, multiply the current selected row number in column B with A5

I tried =ROW function for creating a reference but failed.

I tried with this formula: C(2) =MULTIPLY(B=ROW(),A5) thinking it will be parsed to C(2) =MULTIPLY(B2,A5)

like image 975
nr5 Avatar asked Sep 03 '25 01:09

nr5


1 Answers

You have two options to accomplish this:

1. INDEX() formula:

=INDEX(B:B,ROW())*A5

2. INDIRECT() formula:

=INDIRECT("B"&ROW())*A5

Where ROW() is the number of cell you're entering this formula into.

like image 60
ttaaoossuuuu Avatar answered Sep 05 '25 22:09

ttaaoossuuuu