Share via

indirect function returns zero

Anonymous
2012-11-22T21:03:59+00:00

Hi,

I am trying to write a formula that can be pasted into multiple spreadsheet with different layouts to the data ranges.

I want to build the data ranges by using values in A1 and B1 rather than continually editing the formula.

For example, in a particular spreadsheet the count for the data range for column H is 25

Therefore the cells contents are as follows:

A1 = H             

B1 = 25

C1 = INDIRECT(A1&B1)

Yet C1 Returns 0 and not H25. Why?

Thanks in anticipation.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

HansV 462.6K Reputation points
2012-11-22T21:21:58+00:00

=INDIRECT(A1&B1) is equivalent to =H25. This formula will return the value of cell H25; if this cell is empty, the formula will return 0.

If you want to return the text H25, simply use =A1&B1

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful