+ Reply to Thread
Results 1 to 5 of 5

Formulas to move cell contents to new position

  1. #1
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    Formulas to move cell contents to new position

    I have a table relating two sets of values which I wish to use as a lookup table. My problem is that the second column has a variable number of repeats of its values. both VLOOKUP AND INDEX/MATCH will relate to the first value in the lookup column, and this usually gives a blank as the looked up value.
    I am searching for a way to move the values in the first column so that they line up with the first instance of each of the values in the second column.
    This very difficult to explain, but easy to illustrate so please look in the attached workbook!
    I hope that someone vcan help me.
    John
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    Re: Formulas to move cell contents to new position

    Sorry the download seems to have lost the table showing what I would like to happen. Test11.xlsm should show what I need
    Attached Files Attached Files

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Formulas to move cell contents to new position

    simply sort the data
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: Formulas to move cell contents to new position

    In F2

    =IF($A3<>"",$A3,"")

    copy down

    in G2

    =B2

  5. #5
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    Re: Formulas to move cell contents to new position

    John Topley,
    A belated thank you for your help. I had gone down the sort route suggested by nflsales. I,ll try yours now.
    John

+ 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. Replies: 5
    Last Post: 02-07-2012, 04:19 PM
  2. Move last x characters to x position in a cell
    By adispy in forum Excel General
    Replies: 10
    Last Post: 02-23-2011, 06:13 PM
  3. VBA to move shape from current cell position to cell 1 row up
    By wotadude in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-14-2008, 12:05 AM
  4. How to set the position of a active cell and clear the contents of the cells
    By aijihz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-09-2007, 04:46 PM
  5. Return contents of cell at Index position in Source Range of Drop
    By TheMath in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-21-2006, 01:20 PM
  6. Replies: 3
    Last Post: 09-26-2005, 11:05 AM
  7. Replies: 3
    Last Post: 08-22-2005, 06:05 PM
  8. Replies: 1
    Last Post: 07-01-2005, 10:57 AM

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