+ Reply to Thread
Results 1 to 8 of 8

Formula to get date from merged cell to other field

  1. #1
    Forum Contributor
    Join Date
    07-21-2009
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    292

    Lightbulb Formula to get date from merged cell to other field

    Dear all,

    thanks for last help.

    i have sheet 1.. some cells are merged for 4 lines. i want data of this merged cell to sheet 2 by a formula.

    attached is my requirement.. can you help please?

    i have put formula in sheet "my requirement".. but this formula will not work if i copy and past down. any solution please?

    thanks.
    Attached Files Attached Files
    Last edited by tariqnaz2005; 02-01-2024 at 01:45 PM.

  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,063

    Re: Formula to get date from merged cell to other field

    c2 copied down:

    =INDEX(data!$E$2:$E$20,1+4*(ROWS(C$2:C2)-1))
    Attached Files Attached Files
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Formula to get date from merged cell to other field

    Put this formula in C2 and copy down:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    PSA: Merged cells are a very bad practice in almost every situation. Don't use them.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Forum Contributor
    Join Date
    07-21-2009
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    292

    Re: Formula to get date from merged cell to other field

    thanks 6StringJazzer .. but this formual gives me zero .. not text

    can you check it please again. thanksl

  5. #5
    Forum Contributor
    Join Date
    07-21-2009
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    292

    Re: Formula to get date from merged cell to other field

    dear glenn.. thanks .. but i have a very big data like 5000 rows in sheet 1.. if i copy past down.. it does not work properly..

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Formula to get date from merged cell to other field

    Values as displayed
    C
    1
    2
    abcd
    3
    xyz
    my requirements


    Underlying formulas
    C
    1
    2
    =INDEX(data!E:E,(ROW()-2)*4+2)
    3
    =INDEX(data!E:E,(ROW()-2)*4+2)
    Attached Files Attached Files

  7. #7
    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,063

    Re: Formula to get date from merged cell to other field

    Did you change the 20 to be the same as the last row of your data?

  8. #8
    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,063

    Re: Formula to get date from merged cell to other field

    Showvus what you mean by "did not work properly".

+ 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: 1
    Last Post: 09-27-2018, 11:22 AM
  2. [SOLVED] Date formatting a merged cell with user form
    By rob_h in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-06-2018, 09:59 AM
  3. [SOLVED] PowerPivot: Merge Month Field and Year Field Into a Date Field
    By mo4391 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 07-17-2015, 11:59 AM
  4. Replies: 4
    Last Post: 03-11-2015, 08:46 AM
  5. [SOLVED] Formula to pull from a value from a category on a date that has 3 merged rows
    By killerthun in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-17-2014, 12:39 PM
  6. Limit merged cell data; Place excess into next merged cell down
    By coreytroy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-06-2013, 10:35 PM
  7. How to do cells(x,y) for merged field
    By Piotr in forum Excel General
    Replies: 2
    Last Post: 05-20-2005, 12:06 PM

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