• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

I wanted to create a bin range for data in excel

I have data in cell value A2:A57838 in Sheet1. I wanted to create a bin range in a group of 20. Please refer image screenshot. Though I am able to group by using pivot table, but I want to assign a cell value A2 to a bin range.

For eg Cell value A2 is 26708325. it falls in the range of 26708321-26708340 (Desired result).
 

Attachments

  • Sample data Bin Range.xlsb
    176.6 KB · Views: 11
  • Bin range criteria Image.JPG
    Bin range criteria Image.JPG
    54.6 KB · Views: 8
Hi @Kumar Shanmugam

You could use this formula (Based on your Binrange):
=LOOKUP(A2,--LEFT(Binrange!$A$2:$A$1789,8),Binrange!$A$2:$A$1789)

Or instead, you can use this formula (independent):
=1+MROUND(A2,20)&"-"&MROUND(A2+20,20)

Blessings!
 
Thank you very much. Very much surprised - your formula worked. I didn't expect that I would get such a fast reply for this question. Chandoo forum really rocks.
 
Back
Top