Find Interval Number Based On Adjacent Cell

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,046
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
hi guys..

i'm looking for excel formula to find the interval number based on adjacent column (in left)
like table below :

data given
data given4
data entrycumulative sumexpected result (interval)
999-13
131314-17
151718-21
232122-25
3425etc..

<tbody>
</tbody>


any help, much appreciated..

m.susanto
 
Last edited:

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

gaz_chops

Well-known Member
Joined
Apr 29, 2003
Messages
6,485
Platform
  1. MacOS
Not sure! Try

=B3+1&"-"&B4

Code:
[/COLOR][/FONT][/COLOR]
[TABLE="width: 325"]
<colgroup><col span="5"></colgroup><tbody>[TR]
[TD]data entry[/TD]
[TD]cumulative sum[/TD]
[TD="colspan: 2"]expected result (interval)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]9[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]Sep-13[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]13[/TD]
[TD="align: right"]13[/TD]
[TD]14-17[/TD]
[TD][/TD]
[TD]14-17[/TD]
[/TR]
[TR]
[TD="align: right"]15[/TD]
[TD="align: right"]17[/TD]
[TD]18-21[/TD]
[TD][/TD]
[TD]18-21[/TD]
[/TR]
[TR]
[TD="align: right"]23[/TD]
[TD="align: right"]21[/TD]
[TD]22-25[/TD]
[TD][/TD]
[TD]22-25[/TD]
[/TR]
[TR]
[TD="align: right"]34[/TD]
[TD="align: right"]25[/TD]
[TD]etc..[/TD]
[TD][/TD]
[TD]26-[/TD]
[/TR]
</tbody>[/TABLE]
[COLOR=#000000][FONT=Lucida Grande][COLOR=#006107]
 
Upvote 0

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,046
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Not sure! Try

=B3+1&"-"&B4

Code:
[TABLE="width: 325"]
<tbody>[TR]
[TD]data entry[/TD]
[TD]cumulative sum[/TD]
[TD="colspan: 2"]expected result (interval)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]9[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]Sep-13
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]13[/TD]
[TD="align: right"]13[/TD]
[TD]14-17[/TD]
[TD][/TD]
[TD]14-17[/TD]
[/TR]
[TR]
[TD="align: right"]15[/TD]
[TD="align: right"]17[/TD]
[TD]18-21[/TD]
[TD][/TD]
[TD]18-21[/TD]
[/TR]
[TR]
[TD="align: right"]23[/TD]
[TD="align: right"]21[/TD]
[TD]22-25[/TD]
[TD][/TD]
[TD]22-25[/TD]
[/TR]
[TR]
[TD="align: right"]34[/TD]
[TD="align: right"]25[/TD]
[TD]etc..[/TD]
[TD][/TD]
[TD]26-[/TD]
[/TR]
</tbody>[/TABLE]


not fully working in start lowest number the should be still 9-13 the next is ok from 14-17....
sorry i'm typo in 9 number
 
Last edited:
Upvote 0

AliGW

Banned
Joined
Mar 9, 2014
Messages
3,628
ADVERTISEMENT
Explain the logic, please.
 
Upvote 0

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,046
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
sorry, my interval is 4 start from 9.
first target should be :
9-13
14-18
19-23
etc....
 
Upvote 0

AliGW

Banned
Joined
Mar 9, 2014
Messages
3,628
ADVERTISEMENT
OK - that makes sense, but to me, your expected results don't. How have you arrived at those, please?
 
Upvote 0

AliGW

Banned
Joined
Mar 9, 2014
Messages
3,628
Gaz and I need your answers to my questions if either of us is going to be able to help. Your data is inconsistent.
 
Upvote 0

Forum statistics

Threads
1,195,953
Messages
6,012,511
Members
441,703
Latest member
clivelincoln

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
Top