# Formula: Return value of Cell A1 + x number of columns over

#### davejago

##### Board Regular
I need a formula that returns the value that I have in A1, plus x number of columns over. X could be anywhere between 0-24, and ideally I would like x to be a cell reference.

Example: X is 3. Formula is written in cell B1. So return me that value 3 columns over from A1 - i.e. the value in cell D3.

Is there a formula to help me?

### Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

#### barry houdini

##### MrExcel MVP
Why D3, do you mean D1?

If you "X" value (0-24) is in A2

=INDEX(A1:Y1,A2+1)

Replies
4
Views
132
Replies
3
Views
119
Replies
5
Views
143
Replies
7
Views
281
Replies
5
Views
67

Threads
1,181,730
Messages
5,931,701
Members
436,799
Latest member
BasOo

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

### Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

### Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back