+ Reply to Thread
Results 1 to 5 of 5

populate metric value and metric days data into a single row and two separate columns

  1. #1
    Registered User
    Join Date
    05-01-2022
    Location
    London
    MS-Off Ver
    365
    Posts
    2

    populate metric value and metric days data into a single row and two separate columns

    I have the an excel sheet with the some data in the following format:

    metricDetails Identifier effectiveTime recordTime Details
    MetricValue 207610 10:21:28 PM 23/04/2022 0.02622
    MetricDays 207610 10:21:28 AM 23/04/2022 114
    MetricValue 207271 10:21:28 PM 23/04/2022 0.004375
    MetricDays 207271 10:21:28 AM 23/04/2022 30

    Being a novice excel user, I would need to some help to get a formula that i can use to transform the data to the below format : essentially the metric value and metric days data should get populated in a a single row and two separate columns ( Metric A, Metric B)

    Output

    Identifier effectiveTime recordTime MetricA MetricB
    207610 10:21:28 PM 23/04/2022 0.02622 114
    207271 1:21:28 AM 23/04/2022 0.004375 30
    Attached Files Attached Files
    Last edited by rajat007; 05-01-2022 at 04:09 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    36,815

    Re: excel formula help

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file.

  3. #3
    Registered User
    Join Date
    05-01-2022
    Location
    London
    MS-Off Ver
    365
    Posts
    2

    Re: excel formula help

    thanks - attaching a sample

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    62,150

    Re: populate metric value and metric days data into a single row and two separate columns

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. On this occasion I have done it for you.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" to anyone who has offered you help in your thread. You can reward them by clicking on * Add Reputation below theur user name on the left, if you wish.


    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    Waterlooville,England
    MS-Off Ver
    Office 2010
    Posts
    23,348

    Re: populate metric value and metric days data into a single row and two separate columns

    In A14

    =INDEX($B$2:$E$5,(ROWS($1:1)-1)*2+1,COLUMN(A$1))

    copy across to D

    in E14

    =INDEX($B$2:$E$5,(ROWS($1:1))*2,COLUMN(D$1))

    or

    =INDEX($B$2:$E$5,(ROWS($1:1))*2,4)

    copy all down
    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. Formula for stock cover/ days in inventory and also generate excel formula for it
    By james brownson in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-14-2021, 01:41 AM
  2. [SOLVED] VBA, User-defined formula argument referring to cell value calculated by Excel formula
    By ARAGORN II in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-23-2017, 01:57 PM
  3. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  4. Replies: 10
    Last Post: 12-16-2015, 03:16 PM
  5. Replies: 2
    Last Post: 03-21-2014, 11:43 AM
  6. Replies: 0
    Last Post: 03-19-2012, 07:32 PM
  7. Replies: 1
    Last Post: 03-04-2012, 12:03 AM

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