Increment number by X within formula

cidfidou

Board Regular
Joined
Jan 19, 2009
Messages
163
Hi Excel Gurus,

i would like to come up with a formula that will increment a number in order to place it whithin a vlookup.

I think the rows formula is the answer but i cant figure it out?

I would like to have a formula giving me the following in the third argument of my vlookup in order to paste the vlookup down a massive excel Spreadsheet
3
7
11
15
19
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Try

=VLOOKUP(val,range,(COLUMNS($A1:A1)-1)*4+3,FALSE)

DO NOT change the $A1:A1, it has no relation to your data.
The *4 represents the inteveral (every 4th)
The +3 represents the first # to use (3)
 
Last edited:
Upvote 0
Hi jommo,

thank you so much for your prompt answer. I need to paste the formula down my spreadsheet so i think the rows formula should be used ( =ROWS((A$1:A1)-1)*4+3)

Sry for being slow, but I can t figure out how to trick your formula to start it with 3 and to have then 7,11,15,19.....

Thanks in advance
 
Upvote 0
You missplaced a Paren

=VLOOKUP(val,range,ROWS((A$1:A1)-1)*4+3,FALSE)
Should be
=VLOOKUP(val,range,(ROWS(A$1:A1)-1)*4+3,FALSE)


You won't actually see the numbers incriment 'within the formula'
But the reference will change accordingly.
 
Last edited:
Upvote 0
No that's not right (although it probably works, but it's better as above)
refresh your browser, I had a typo.
 
Upvote 0
Thanks Jommo. I will be using yours.. I am always impressed with people like you ready to help strangers. have a nice day
 
Upvote 0

Forum statistics

Threads
1,215,372
Messages
6,124,542
Members
449,169
Latest member
mm424

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

Which adblocker are you using?

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
Back
Top