+ Reply to Thread
Results 1 to 2 of 2

Divide Single Row Date Values In Two Rows & Transfer Values

  1. #1
    Registered User
    Join Date
    02-01-2013
    Location
    Greece
    MS-Off Ver
    Excel 2010
    Posts
    28

    Divide Single Row Date Values In Two Rows & Transfer Values

    Hope you can help with this:

    In worksheet "TOTALS" and Range "M11:N251" there are "from:to" time periods inserted by user ("From" is in "M11:M" and "To" is in "N11:N"). Number of rows (and inserted time periods) may vary. Time periods are quadrimester (4months) but not always 120 days (could be 119, 122 or sth like that - if less than 100 then user must not be allowed to divide). Range "W11:W251" hosts amounts of money. So, for example, "M11:N11" can be 1/1/13-1/5/13 (dd/mm/yy) and W11 just a number (i.e. 98,45).

    I want to be able to divide each time period almost by 2 (first part can be 60 days, second part rest of days) and amounts accordingly (depending on the number of days of its divided period) and transfer the divided periods and amounts to a new worksheet (TOTALS2) to -let's say- range "A11:B251" & "G11:G251").

    So, in the above example, in "TOTALS2" we'll have 1/1/13-1/3/13 in "A11:B11" and 1/3/13-1/5/13 in "A12:B12", and the divided amounts accordingly to the counted days of "A11:B11" & "A12:B12" in "G11" and "G12".

    And so on until there are no more time periods & amounts in TOTALS to divide and transfer to TOTALS2.

    How can this be done? Ideas?

    Thanks in advance!
    Attached Files Attached Files
    Last edited by kopapa; 11-09-2013 at 06:06 AM.

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Divide Single Row Date Values In Two Rows & Transfer Values

    Hi there,

    Take a look at the attached workbook and see if it does what you need.

    Just one point - the Tax Rate you've chosen (i.e. 13%) has now been defined as a workbook-level constant called dTAX. This means that the value needs to be changed in only a single location if the tax rate ever changes in the future.

    Hope the attached helps - please let me know how you get on.

    Regards,

    Greg M
    Attached Files Attached Files

+ 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. Merge Duplicate Rows unique values into single rows for an infinite amount of columns/rows
    By aimeecrystalaid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-21-2013, 08:43 PM
  2. Replies: 2
    Last Post: 03-22-2013, 07:42 AM
  3. Excel 2007 : How to transfer column values to rows?
    By __LENITH__ in forum Excel General
    Replies: 3
    Last Post: 11-21-2010, 09:02 AM
  4. Adding text values and date values to get a single-digit answer
    By e4excel in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 11-24-2008, 12:53 AM
  5. dummy alert - divide values by values
    By Micayla Bergen in forum Excel General
    Replies: 1
    Last Post: 05-03-2005, 10: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