This is a blog which will post useful infomation about fixing computer errors. To help people troubleshoot errors, speed up computers and share good apps.

9/26/2016

How to Fix Problem - Determine number of months and insert rows?

Determine number of months and insert rows

I have 2 columns with dates in them.   What I need to do is break this date range out by number of months and then have Excel insert the approprate number of additional lines (and the dates if possible, but if not the dates, just blank lines will do).  I
have over 350 of these date ranges to do this with and I was hoping someone had a way to make this exercise a little more tolerable than what it appears to be!!
 
Original:
A                        B
12/13/11          2/1/12
2/1/12               2/29/12
11/10/11          2/1/12
Result:
A                           B
12/13/11            12/31/11
1/1/12                  1/31/12
2/1/12                  2/1/12
2/1/12                   2/29/12
11/10/11              11/30/11
12/1/11                 12/31/11
1/1/12                    1/31/12
2/1/12                     2/1/12

Keys to the Problem Determine number of months and insert rows

Download SmartPCFixer for Free Now

Try this macro:
 
Sub SplitMonths()
    Dim r As Long
    Dim d1 As Date
    Dim d2 As Date
    Application.ScreenUpdating = False
    r = 1
    Do While Cells(r, 1) <> ""
        d1 = Cells(r, 1)
        d2 = Cells(r, 2)
        Do While d2 - Day(d2) > d1 - Day(d1)
            Cells(r + 1, 1).EntireRow.Insert
            d1 = DateSerial(Year(d1), Month(d1) + 1, 1)
            Cells(r, 2) = d1 - 1
            r = r + 1
            Cells(r, 1) = d1
            Cells(r, 2) = d2
        Loop
        r = r + 1
    Loop
    Application.ScreenUpdating = True
End Sub

Manually editing the Windows registry

Caution: Unless you an advanced PC user, please do not edit the Windows registry manually.

Because of this risk, we highly recommend using a trusted registry cleaner such as SmartPCFixer Using a registry cleaner automates the process of finding invalid registry entries, missing file references (like the one causing your MACHINE_CHECK_EXCEPTION error), and broken links within the registry. A backup is automatically created before each scan, with the ability to undo any changes in a single click, protecting you against the possibility of PC damage. The best part is that repairing registry errors can also dramatically improve system speed and performance.

  • Click the Start button.
  • Type "command" in the search box... DO NOT hit ENTER yet!
  • While holding CTRL-Shift on your keyboard, hit ENTER.
  • You will be prompted with a permission dialog box.
  • Click Yes.
  • A black box will open with a blinking cursor.
  • Type "regedit" and hit ENTER.
  • In the Registry Editor, select the Error 0x9C-related key (eg. Windows Operating System) you want to back up.
  • From the File menu, choose Export.
  • In the Save In list, select the folder where you want to save the Windows Operating System backup key.
  • In the File Name box, type a name for your backup file, such as "Windows Operating System Backup".
  • In the Export Range box, be sure that "Selected branch" is selected.
  • Click Save.
  • The file is then saved with a .reg file extension.
  • You now have a backup of your MACHINE_CHECK_EXCEPTION-related registry entry.

The next steps in manually editing your registry will not be discussed in this article due to the high risk of damaging your system. If you would like to learn more about manual registry editing, please see the links below.

Recommended Method to Repair the Problem: Determine number of months and insert rows:

How to Fix Determine number of months and insert rows with SmartPCFixer?

1. Download Error Fixer. Install it on your computer.

2. After the scan is done, you can see the errors and problems which need to be fixed.

3. The Fixing part is done, the speed of your computer will be much higher than before and the errors have been removed.


Related: How to Update & Download NVidia GeForce 6100/nForce 420 WHQL Certified driver v.178.13,How to Update & Download NVidia GeForce 7600 GS Video Driver v.295.75 Certified,How Can I Update & Download NVidia GeForce 820M Driver v.344.48 WHQL,[Solved] Download NVidia GeForce GTX 560M VGA Driver v.296.17 Certified,Way to Update & Herunterladen NVidia GeForce GT 130M Video Treiber v.295.75 Certified,How to Update & Download SONY SVE14A1X1RH Realtek Ethernet Driver,Where to Download SONY SVS13A2W9ES Bluetooth Driver (Intel) v.2.6 - 2.6.23.40059,Best Way to Update & Download SONY VGN-CR203E Conexant HDAUDIO SoftV92 Data Fax Modem with SmartCP Setup Program v.7.62.0.50 driver,Best Way to Download SONY VGN-FE790G/N Wireless LAN Driver v.10.6.0.29,Method to Update & Download SONY VGN-NR31Z/S Firmware Extension Parser Device v.8.0.2.3,How to Fix Error 0x0000c1f5 Solución?,Error 0x80071a91 Win7 Fix Patch,Error 0x800ccc60 Windows Live Mail [Solved],Error Message 0x800ccc79 Outlook 2000 Fix,What is Error 0xc1ab0001?,[Answered] x64 saplugin dll,How to Fix Problem - Kb943729 Download?,Troubleshooting: Bccode D1 Error,Java Runtime Tech Support,Troubleshooting: ERROR NO SUCH GROUP Error
Read More: Tech Support: Date Function,How Can I Fix - Default Bullets Changed in Word 2010?,Troubleshoot:Database creation of Raw Data which has one name appearing multiple times in sheet 1 but sheet 2 it should only appear once,Solution to Problem: Dell Inspiron 1750 with Startup repair Advice!!__ __ __,Delete leading zeroes
Share:

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Sample Text

Copyright © Fix Your PC Errors & Speed Up Your PC | Powered by Blogger Design by ronangelo | Blogger Theme by NewBloggerThemes.com