ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Column reference and column count (https://www.excelbanter.com/excel-discussion-misc-queries/92201-column-reference-column-count.html)

Steve-in-austin

Column reference and column count
 
I have a 240 column row (row 1) with zeros except for one cell 0. I need a
formula in 240 columns of row 2 that will:

if cell in row 1 0 then
begin column count for # of columns specified (a variable) and
display another varaible until column count = # of columns specified else
the cell =0

I think the key is creating an absolute reference from the cell in row 1
0, but I cannot find the right mix of column / index and ? functions. Thanks


Steve-in-austin

Column reference and column count
 
I came up with a simple solution that I tried to post but it abended. Tahnks
to all who noodled on this.

"Steve-in-austin" wrote:

I have a 240 column row (row 1) with zeros except for one cell 0. I need a
formula in 240 columns of row 2 that will:

if cell in row 1 0 then
begin column count for # of columns specified (a variable) and
display another varaible until column count = # of columns specified else
the cell =0

I think the key is creating an absolute reference from the cell in row 1
0, but I cannot find the right mix of column / index and ? functions. Thanks



All times are GMT +1. The time now is 02:28 PM.

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