View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Glenn Glenn is offline
external usenet poster
 
Posts: 1,240
Default Difficult function question for columns

AAA1986 wrote:
I would like the create a column that performs the following function:

[If column A=1, then display number in cell B10; If Column A=2, then display
number in cell B11, If column A=3; then display number in cell B12]

If it is of any importance, in the above example B10:12 have a
=SUMIF/COUNTIF function in them.

Thanks in advance.



=INDEX(B10:B12,A1)

=OFFSET(B10,A1-1,0,1,1)

=INDIRECT("B"&A1+9)