+ Reply to Thread
Results 1 to 14 of 14

is there such formula to take date from different cells and put into another cell

  1. #1
    Registered User
    Join Date
    11-05-2020
    Location
    london
    MS-Off Ver
    2007
    Posts
    5

    is there such formula to take date from different cells and put into another cell

    is there such formula to take date from different cells and put into another cell?
    1. is the data
    2. is the result i need.
    So i need to take year, quarter number and the number from different quarter to another cell.
    Attached Images Attached Images

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: is there such formula to take date from different cells and put into another cell

    just unpivot data

    are you still using XL2007 ?

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,791

    Re: is there such formula to take date from different cells and put into another cell

    yes
    you can use a grid lookup and split the text

    so
    =INDEX($B$2:$E$3,MATCH(LEFT($G2,4)*1,$A2:$A3,0),MATCH(RIGHT($G2,2),B$1:E$1,0))


    A sample sheet would help here

    The forum does allow for spreadsheets to be uploaded direct to the forum -

    Please see the Yellow Banner at the top of the page explaining how to attach a sample spreadsheet

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.

    Here are the instructions, found at the top of the page again
    Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: is there such formula to take date from different cells and put into another cell

    solution for XL2010/2013 (require Power Query add-in) , XL2016 and up - Power Query is build-in

    Year Q1 Q2 Q3 Q4 YQ Value
    1994
    5
    4
    4
    3
    1994-Q1
    5
    1995
    54
    6
    1
    2
    1994-Q2
    4
    1996
    4
    2
    5
    6
    1994-Q3
    4
    1997
    1
    3
    8
    5
    1994-Q4
    3
    1995-Q1
    54
    1995-Q2
    6
    1995-Q3
    1
    1995-Q4
    2
    1996-Q1
    4
    1996-Q2
    2
    1996-Q3
    5
    1996-Q4
    6
    1997-Q1
    1
    1997-Q2
    3
    1997-Q3
    8
    1997-Q4
    5


    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,298

    Re: is there such formula to take date from different cells and put into another cell

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

  6. #6
    Registered User
    Join Date
    11-05-2020
    Location
    london
    MS-Off Ver
    2007
    Posts
    5

    Re: is there such formula to take date from different cells and put into another cell

    Thanks.
    Do you have any idea how can i make formula for excel to take every quarter of the year into L columnAttachment 824388?

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,791

    Re: is there such formula to take date from different cells and put into another cell

    isn't that what the formula is doing

    attachment not opening

  8. #8
    Registered User
    Join Date
    11-05-2020
    Location
    london
    MS-Off Ver
    2007
    Posts
    5

    Re: is there such formula to take date from different cells and put into another cell

    Attachment 824389 i will try to attach it again

  9. #9
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,791

    Re: is there such formula to take date from different cells and put into another cell

    are you following the yellow banner - or my copy of how to attach?

  10. #10
    Registered User
    Join Date
    11-05-2020
    Location
    london
    MS-Off Ver
    2007
    Posts
    5

    Re: is there such formula to take date from different cells and put into another cell

    REALGDP.xlsx i try to attach the file

  11. #11
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,791

    Re: is there such formula to take date from different cells and put into another cell

    How are you attaching files .......
    via manage attachments - do not use the paperclip

  12. #12
    Registered User
    Join Date
    11-05-2020
    Location
    london
    MS-Off Ver
    2007
    Posts
    5

    Re: is there such formula to take date from different cells and put into another cell

    okay i tried other way
    Attached Files Attached Files

  13. #13
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: is there such formula to take date from different cells and put into another cell

    you didn't answer
    are you still on XL2007?

  14. #14
    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,363

    Re: is there such formula to take date from different cells and put into another cell

    In L2

    =IFERROR(INDEX($F$2:$F$30,INT((ROWS($1:1)-1)/4)+1)& "-" & INDEX($G$1:$J$1,MOD((ROWS($1:1)-1),4)+1),"")

    in M2

    =IFERROR(INDEX($G$2:$J$30,MATCH(--MID($L2,1,4),F$2:F$30,0),MATCH(RIGHT($L2,2),G$1:J$1,0)),"")
    Attached Files Attached Files
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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: 07-06-2022, 04:49 PM
  2. Formula for Cell to input Date&Time ONLY if Cells in the same row change info
    By TwistedFaith in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-04-2018, 04:52 AM
  3. Replies: 3
    Last Post: 02-17-2016, 08:26 AM
  4. Macro to find Date Cells > Current Date and delete everything to left of that cell
    By LewisLonsdale in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-25-2015, 06:36 AM
  5. Replies: 1
    Last Post: 09-17-2012, 01:07 AM
  6. Formula to fill cells based on the date in another cell
    By PowerPlayer23 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2012, 02:26 PM
  7. Filling cells with 3 different colors based on date in cell and todays date
    By chinookcrew in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-23-2009, 07:36 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