+ Reply to Thread
Results 1 to 6 of 6

Normalize data

Hybrid View

  1. #1
    Registered User
    Join Date
    03-19-2019
    Location
    Groningen
    MS-Off Ver
    365
    Posts
    4

    Normalize data

    Hi,

    Is there a way to scale down my data set to a specific amount?

    What i'm trying to achieve is this:

    Let's say i have a project that takes 132 weeks and in each week a number of hours are spend on that project.

    I want to normalize the data to 50 weeks. So i can compare different project with a different length with each other.

    Any idea how i can achieve that?

    I've attached an example of data.

    Thanks in advance.
    Attached Files Attached Files
    Last edited by Josm95; 04-20-2020 at 08:30 AM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Normalize data

    Assuming the load during the week is constant, one could calculate the "week's" length ratio as (F2):
    Formula: copy to clipboard
    =MAX(C:C)/MAX(G:G)

    equal 2.64 .
    it can be used to select appropriate parts of weeks from left column - for normalized week1 data from weeks 1, 2 and 0,64 of week 3
    for normalized week 2 data from 0,36 (rest) of week 3, then whole weeks 4 and 5 and 0.28 of week 6 etc.
    I left it in a column-by column easy formulas to calculate whole weeks sum, and parts before first whole week and after last whole week.
    The formulas are in yellow cells in attached sheet. In H2 just write 1, and in H3:
    Formula: copy to clipboard
    =H2+$F$2

    then the following formulas in cells and copied down

    Formula: copy to clipboard
    I2: =SUMIFS(D:D,C:C,">"&H2,C:C,"<"&H3-1)
    J2: =(1+TRUNC(H2)-H2)*VLOOKUP(TRUNC(H2),$C$2:$D$133,2,0)
    K2: =(H3-TRUNC(H3))*VLOOKUP(TRUNC(H3),$C$2:$D$133,2,0)
    L2: =SUM(I2:K2)

    final touches: K51 write 0
    H51 copy down one more row to H52 (it's used by I51)

    PS. The formulas could be nested into one lon monster-formula (well, I've seen longer on this forum) but it would lose readability while formulas above are rather basic and readable :-)


    Enjoy!
    Attached Files Attached Files
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    03-19-2019
    Location
    Groningen
    MS-Off Ver
    365
    Posts
    4

    Re: Normalize data

    Thank you very much Kaper, this is exactly what i need.

    Cheers.




    Best Regards,

    Jos

  4. #4
    Registered User
    Join Date
    03-19-2019
    Location
    Groningen
    MS-Off Ver
    365
    Posts
    4

    Re: Normalize data

    Hi Kaper,

    Just one more question, i tried the formula with another set of data, but the total of the normalized hours doesnt match the total of the original data.
    Can't quite figure out why it would not work. Any idea?

    Thanks.

    I'v attached the file, see the blue marked cells.

    Jos
    Attached Files Attached Files
    Last edited by AliGW; 04-28-2020 at 09:21 AM. Reason: Please don't quote unnecessarily!

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Normalize data

    I can quickly spot where the problem is:
    it's not taking into account week 73 hours 8
    Which shall be used in normalized week 25 (a representation of standard weeks 71.08 - 74).
    so the condition in I2:
    Formula: copy to clipboard
    =SUMIFS(D:D,C:C,">"&H2,C:C,"<"&H3-1)

    is too strong.
    Seems that
    Formula: copy to clipboard
    =SUMIFS(D:D,C:C,">"&H2,C:C,"<="&H3-1)


    Test it and observe if it behaves better

  6. #6
    Registered User
    Join Date
    03-19-2019
    Location
    Groningen
    MS-Off Ver
    365
    Posts
    4

    Re: Normalize data

    Thanks, that seems to work!
    Last edited by AliGW; 04-28-2020 at 09:21 AM. Reason: Please don't quote unnecessarily!

+ 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. Help me normalize/pivot this data?
    By James Keuning in forum Excel General
    Replies: 3
    Last Post: 04-10-2020, 01:31 PM
  2. Transpose Data to Normalize Table
    By alansidman in forum Tips and Tutorials
    Replies: 3
    Last Post: 04-25-2018, 03:39 AM
  3. [SOLVED] How to Normalize the Data in Excel?
    By fookelvin in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 12-05-2016, 11:41 PM
  4. [SOLVED] Macro to Normalize Data
    By Brawnystaff in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-22-2014, 09:49 PM
  5. Normalize data
    By MrKickAss in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-17-2014, 12:13 PM
  6. How to normalize data
    By excellicious in forum Excel General
    Replies: 3
    Last Post: 02-05-2009, 11:20 PM
  7. problem to normalize data
    By alnnbutms in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-19-2006, 07:40 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