get column header from a range of sequential numbers

Paragons

New Member
Joined
Aug 18, 2021
Messages
9
Office Version
  1. 2013
Platform
  1. Windows
I have tried iterations of lookup, index and match to no avail.
Column header j is from 1 to 31 then f is from 32 to 59 then m is 60 to 90 and a is from 91 to 120 etc (others are not displayed, you can guess that they are months)
A random d100 number is generated such as 32 and this would fall in the range 32 to 59 which is column header f.
The second row d100 of 77 is in the range 56 to 90 which is column header m

So what is the formula to get the result?

Thanks in advance,

Pete

Pl#jfmad100result
131599012032f
225559012077m
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
I am not sure that columns are important. If we know that headers are first letter of months, so maybe you can try put into result cell:
Excel Formula:
=LOWER(LEFT(TEXT("1/1/2023"+F2-1,"mmm"),1))
where F2 is a cell where d100 is placed.
 
Upvote 0
I think I got it with lookup and offset
OFFSET is a volatile function so I would avoid that if possible. Would this non-volatile version work for you?

23 05 29.xlsm
ABCDEFG
1Pl#jfmad100result
2131599012032f
3225559012077m
4325559012016j
Header range
Cell Formulas
RangeFormula
G2:G4G2=IFNA(LOOKUP(F2-1,B2:D2,C$1:E$1),B$1)
 
Upvote 0
You're welcome. Glad we could help. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,272
Members
449,075
Latest member
staticfluids

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