+ Reply to Thread
Results 1 to 7 of 7

Arrange values in specific cells based on values

  1. #1
    Registered User
    Join Date
    12-16-2004
    Location
    Melbourne, Australia
    MS-Off Ver
    2016
    Posts
    34

    Question Arrange values in specific cells based on values

    Hi all

    What I need to achieve is to assign a series of numbers to corresponding cells based on their values. Does anyone know how to achieve this?

    Example... Let's say I have the numbers 1, 4 ,8 and 10. And I need to place these numbers in a column where the number one will correspond to Day 1, number 4 to Day 4, 8 to Day 8, and 10 to Day 10.
    Attached Images Attached Images

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,194

    Re: Arrange values in specific cells based on values

    1. Please update your profile to show your approximate location (nation is fine).

    2. Please update your profile to show the Excel product you are currently using (e.g. Excel 2013, O365, etc).

    3. If you are using O365, also include the VERSION (you can see this in the about Excel bit of your account page in Excel)

    4. I do not understand what you want to happen. What do you expect to see? Where do you expect to see it? A sample sheet (yellow banner - top of this page) helps enormously.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Arrange values in specific cells based on values

    Maybe this?
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Diana Tanase


    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way to say thank you !

  4. #4
    Registered User
    Join Date
    12-16-2004
    Location
    Melbourne, Australia
    MS-Off Ver
    2016
    Posts
    34

    Question Re: Arrange values in specific cells based on values

    Quote Originally Posted by Glenn Kennedy View Post
    4. I do not understand what you want to happen. What do you expect to see? Where do you expect to see it? A sample sheet (yellow banner - top of this page) helps enormously.
    Hmmm... I don't know how to explain it more clearly. I have random values that I want to appear to the corresponding Day number. If the number is 3, it needs to go next to Day 3. If the number is 10, it needs to go next to Day 10, and so on...

    Please see sample attached.

    "Sample.xlsx"

  5. #5
    Registered User
    Join Date
    12-16-2004
    Location
    Melbourne, Australia
    MS-Off Ver
    2016
    Posts
    34

    Re: Arrange values in specific cells based on values

    Quote Originally Posted by tanasedn View Post
    Maybe this?
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I've tried this one but it seems that the numbers are not matching the day numbers.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,194

    Re: Arrange values in specific cells based on values

    Perfect. Now I understand!!

    =IFERROR(INDEX(H:H,MATCH(ROW()-ROW(C$4)+1,H:H,0)),"")

    In C4, copied across and down.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-16-2004
    Location
    Melbourne, Australia
    MS-Off Ver
    2016
    Posts
    34

    Thumbs up Re: Arrange values in specific cells based on values

    Quote Originally Posted by Glenn Kennedy View Post
    Perfect. Now I understand!!

    =IFERROR(INDEX(H:H,MATCH(ROW()-ROW(C$4)+1,H:H,0)),"")

    In C4, copied across and down.
    Thanks, Glenn. That's exactly what I was looking for.

    Cheers!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Re Arrange or Move Cell values with respect to Reference Cells
    By structo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2021, 03:11 AM
  2. [SOLVED] Specific sheet to be copied, based on values, along with cells
    By therealaccountant in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-10-2021, 04:03 PM
  3. Replies: 2
    Last Post: 05-21-2021, 07:43 PM
  4. Replies: 3
    Last Post: 06-11-2019, 07:17 AM
  5. Macro to re-Arrange data based on 2 columns values
    By hisham2k11 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-22-2011, 12:53 PM
  6. Replies: 3
    Last Post: 03-28-2011, 10:53 AM
  7. count and arrange cells have numeric values
    By amrezzat in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-21-2005, 05:58 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1