Offset function I think

jeremypyle

Board Regular
Joined
May 30, 2011
Messages
174
I have the following values in cells:

b2:4
c2:7
d2:3
e2:1


I want to put a formula in cell f1 that I can drag down that will do the following:

f1:1
f2:2
f3:3
f4:4
f5:1
f6:2
f7:3
f8:4
f9:5
f10:6
f11:7
f12:1
f13:2
f14:3
f15:1


How would I do this? I think I would use offset formula somehow. It may not be offset. Please let me know what formula to put in f1:

Thanks so much
 
Last edited:
I will need a formula as this is part of another formula

assume your data source is B2:B20 and the maximum number is 99

F1=IFERROR(RIGHT(SMALL(IF($B$2:$B$20>=COLUMN(A:ZZ),ROW($2:$20)/0.1%+COLUMN(A:ZZ)),ROW(A1)),3)-0,"") C+S+E 3 keys then copy down
 
Upvote 0

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Sorry, I just messed up the data source in last reply. correct formula is as follow

assume the maximum number in B2:e2 is 99

F1=IFERROR(RIGHT(SMALL(IF($B$2:$E$2>=ROW($1:$99),COLUMN($B$2:$E$2)/0.1%+ROW($1:$99)),ROW(A1)),3)-0,"")

Press C+S+E 3 keys to run then copy down
 
Upvote 0
it is array formula, you must press 3 keys (control,shift and enter) together to run, and make sure you are using excel version 2010 or later.
 
Upvote 0
Hi caabyyc, I've tried using array but still having a problem getting this to work. Not sure what I am doing wrong
 
Upvote 0

Forum statistics

Threads
1,214,551
Messages
6,120,159
Members
448,948
Latest member
spamiki

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