ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Row Variable assignment (https://www.excelbanter.com/excel-discussion-misc-queries/148299-row-variable-assignment.html)

JMay

Row Variable assignment
 
I have several rows of data
where I need to divide column a by column c
I'd like to somewhere on the sheet enter in
a cell M4, say the munber 25
and have a formula in M5 to
be = a(cellM4)/c(CellM4)
Can this be done?



Dave Peterson

Row Variable assignment
 
Maybe
=indirect("a"&m4)/indirect("C"&m4)
or
=index(a:a,m4)/index(c:c,m4)



JMay wrote:

I have several rows of data
where I need to divide column a by column c
I'd like to somewhere on the sheet enter in
a cell M4, say the munber 25
and have a formula in M5 to
be = a(cellM4)/c(CellM4)
Can this be done?


--

Dave Peterson

CLR

Row Variable assignment
 
Maybe......

=(A1*$M$4)/(C1*$M$4)

Vaya con Dios,
Chuck, CABGx3



"JMay" wrote:

I have several rows of data
where I need to divide column a by column c
I'd like to somewhere on the sheet enter in
a cell M4, say the munber 25
and have a formula in M5 to
be = a(cellM4)/c(CellM4)
Can this be done?



David Biddulph[_2_]

Row Variable assignment
 
=(A1*$M$4)/(C1*$M$4) would be the same as =A1/C1, wouldn't it, Chuck?

I think the OP was looking at how to get A25/C25 in this case, so presumably
needs the INDIRECT function?
--
David Biddulph

"CLR" wrote in message
...
Maybe......

=(A1*$M$4)/(C1*$M$4)


"JMay" wrote:

I have several rows of data
where I need to divide column a by column c
I'd like to somewhere on the sheet enter in
a cell M4, say the munber 25
and have a formula in M5 to
be = a(cellM4)/c(CellM4)
Can this be done?






All times are GMT +1. The time now is 10:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com