Autofill In Macro: Get A Function (sum) Of Several Cells To Be Automated In A Monthly Spreadsheet

Feb 10, 2009

I am trying to get a function (sum) of several cells to be automated in a monthly spreadsheet. I can get the function to work, but how do I get it to Autofil? The syntex seems to call for a range, which will be different every month. I can't figure out how to loop it, so I thought autofill would work.

View 3 Replies


ADVERTISEMENT

Autofill Macro Monthly

Jul 14, 2008

I want to do is set up a macro to autofill into a new column every month. My data is linked to another excel document so that is where it is pulling the data from. Currently I have data in columns monthly from Dec 2001 until June 2008. I just want a macro that will automatically add in the next month, so in this case July then August the following month ect.

View 10 Replies View Related

Create Macro To Insert Monthly P&L Figures Into Spreadsheet

Sep 29, 2013

I am trying to create a macro to insert monthly P&L figures into a spreadsheet.

I am needing the macro to insert a column to the left of a column titled 'movement' each month and copy&paste my monthly figures in.

I have recorded the below macro but my inserted column is always moving into column E and pushing the prior month to the right, where I need it to always be situated to the immediate left of the movement column, e.g. if the macro is inserting September P&L data I need it to be situated between August data (currently in column E and movement data currently in row F and so on.

Column C D E FItem
July
August
Movement

Fees
26,500
28,000
2,000

Assets Ongoing
150,000
160,000
10,000

Columns("E:E").Select
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
Sheets("P&L Current Month").Select
Range("D11:D127").Select

[Code] ...

View 1 Replies View Related

Automated Removal Of Zeros From Spreadsheet

May 8, 2007

I have several Excel files with longitude values in column A, latitude in B, and data in columns C to DH. There is a lot of data in each file, so I was wondering if someone would be able to design a macro to achieve the following: I want any row containing zeros through column C to DA (not through to DH) to be deleted (deletion of the whole row, including DB to DH) - and the row beneath to be shifted up so no blank rows remain.

However, there are 16 instances where the row contains legitimate zeros and should be preserved in the dataset. These are at the following coordinates, where longitude (column A) is listed first, with latitude (B) second.

6.75, 27.75
8.25, 27.75
23.25, 27.75
24.75, 27.75
-2.25, 26.25
-0.75, 26.25
0.75, 26.25
2.25, 26.25
14.25, 26.25
-5.25, 24.75
-3.75, 24.75
-2.25, 24.75
15.75, 24.75
17.25, 24.75
9.75, 23.25
14.25, 21.75

So just to clarify, please could someone create a macro which deletes a row with zeros present from C to DA and shifts up the row beneath, except in the instances listed above.

View 9 Replies View Related

Macro To Autofill A Number In Empty Cells In A Column

Jan 27, 2009

1. I need a macro to find a unique number, say a 10 digit number starting with 4100.. and move it 1 row down and 3 rows to the left. It needs to look only in one column (E) for this number. This row contains several unique numbers, variable number of blank cells between them, all having 10 digits and starting with 4100.. - So the macro needs to repeat this for every unique number.

2)Once it does this, I need it to autofill the unique number in all the cells in column A until the next unique number is reached.

View 5 Replies View Related

Increasing Value In Spreadsheet By Set Amount Monthly?

Jul 31, 2014

I need a series of cells to increase by varying amounts after each month, however this needs to happen automatically so if I send the spreadsheet to someone else, it will update for them automatically. I'm hoping that I can set up a function that will ONLY increase the cells after 4 weeks after they select a date from ANOTHER drop down menu (i.e they select the starting date from cell A1 - then input their starting numbers into other cells which then increase on that same date, 4 weeks later).

The cells that need to increase already have a formula in them as well; as this number is their predicted 1RM based off formulas in other cells.

I will attach a screen shot when able.

View 2 Replies View Related

Budget Spreadsheet With Calendar - Recurring Monthly Expenses

Feb 28, 2014

I have created an monthly budget spreadsheet on excel with a calendar. Formula to show the recurring expenses in the calendar? (Example: Rent/Mortgage on the 1st of every month).

This is what I have : Monthly Budget.xls‎

View 1 Replies View Related

Excel 2010 :: Using Autofill On Spreadsheet That Includes Filtered Column?

Jun 27, 2014

I am working with a very large spreadsheet 10k references... I need to add sequential numbers in a column to identify the references but I need to use he filter in the author column due to the way my referencing software exports the data...

When I try to use the pull down autofill it just keeps repeating the last or second last number of the cell - the autofil box that usually appears has disappeared.

Im using excel 2010

View 2 Replies View Related

Msgbox Macro For Automated Vlookup

Apr 6, 2007

I am writing a macro for people at work to use to automatically vlook-up data from another spreadsheet.

I wanted to base it along the use of a msgbox as they are not the most tech-savy people.

I want the msgbox dialogue to go something like this -

Which spreadsheet do you want to pull in data from?

The user browses to the file they want

Which columns do you want to transfer?

The user types in the columns

Which columns do you want them pasted to (in new sheet)?

The user types in the columns they want to paste to
and then macro does the vlook-up.

View 9 Replies View Related

Creating Macro For Automated Import Of A .txt File

Jan 24, 2008

Create macro for automated import of a .txt file ...

View 10 Replies View Related

Function To Work Out Monthly Compound Rate

Mar 16, 2009

Im trying to work out the formulae or fuction that will work out the monthly compound rate of a loan.

The loan details are £140,000 at 7.55% APR for 20 years.

View 2 Replies View Related

Creating A Macro To Send An Automated Email Through Lotus Notes

Oct 15, 2009

The following line of code is part of the great work that this forum did in creating a macro to send an automated email through Lotus Notes.

I have a small tweak that requires the Body of the message to exist on sheet other than the one where the macro is launched.

The originial code had:

Body1 = Replace(Join(Application.Transpose(Range([by9], [by18].End(3))), "@") & "@@Thank you,", "@", vbCrLf)

I tried:

Body1 = Replace(Join(Application.Transpose(Sheets("LookUp Sheet").Range([by9], [by18].End(3))), "@") & "@@Thank you,", "@", vbCrLf)

But the body of the email is not being copied.

Am I putting the calling the Sheets reference incorrectly?

The routine works perfectly if the body data comes from the sheet where the macro is launched?

View 9 Replies View Related

Can't Autofill If Function With Text In Logical Test

Jun 18, 2014

My logical test is =IF("D2"="E2",1,2). When I autofill or copy down, the row numbers do not change to "D3"="E3", etc. How do I delineate text and also have the ability for autofill or copy to change the rows as it goes?

View 2 Replies View Related

Producing Table Of Monthly Values Based On Monthly Growth Rate And Yearly Total

Mar 6, 2013

I have a table of yearly totals for the amount spent by x. I also have a growth rate for each month so for example in 2001 in jan the growth rate might have been 0.3% and feb 0.5% What I want to do is for each month based on the growth rate and the total produce a value for each month which sum to the total amount. It's also important to note that it restarts each year.

Link for excel file is here: [URL] ...........

View 1 Replies View Related

Pulling Data Into Two Columns Labeled “Monthly” & “Non-Monthly”

Aug 3, 2009

I’m currently pulling data into two columns labeled “Monthly” & “Non-Monthly” respectively. They indicate work orders with a frequency of “Monthly” or “Non-Monthly”

The Monthly data is obtained using the following formula:....

View 9 Replies View Related

Autofill Entire Row With Data From Above Over Entire Spreadsheet

Jul 28, 2014

I'm trying to autofill a series of rows (that are blank) with data from an above row. I want to autofill the row in its entirety, not just filling in blank cells.

For instance (assuming comma is a new column). Colors listed are just a data example. Space between commas indicates a blank cell:

142, RED, GREEN, , YELLOW, , BLACK, PURPLE
(blank row)
142, GREEN, RED, ,BLACK, , PINK, ,
(blank row)
(blank row)
(blank row)
154, YELLOW, BLACK, , GRAY, , PURPLE, RED
(blank row)
(blank row)

So rather than it just completing the task in one desired cell, it would complete the task over the entire spreadsheet. Data spread can be as far as row 500 and column BY, so you can see how a copy + paste or a drag would get monotonous.

Another small example data set:

1,1,1453,0,10,-35
(blank row)
(blank row)
0,0,1448,0, ,-35
(blank row)
1, ,1443,1,3,-36
1,2,1408,2,7, ,
(blank row)
(blank row)
(blank row)
1,2, ,2,7,-39
(blank row)
(blank row)
1,3,1344,1,10,31

And column A will always have data (unless the row is completely blank.

View 1 Replies View Related

Multi-Spreadsheet Formula Down To Populate The Other Cells In The Total Spreadsheet

Jan 4, 2010

I have attached a document paralleling a document I am working on. The dollar amount in each spreadsheet represent sales. I have entered in values into the candy, soda, and chips spreadsheet. I have also linked values for candy into the total spreadsheet. My question is can I somehow type something or drag the formula down to populate the other cells in the total spreadsheet?

The idea I am thinking but which I don't know how to implement is to list all the items (as in column G) and list all of the relevant cells (e.g. B1 in the Candy spreadsheet) as in columns H and I (Note that all items will have the same cells but the cells will have different values...e.g. all three items have a cell B1 and B2 in their spreadsheet but these cells contain different values). I then try and fail to create a formula in cell B3 of the Total spreadsheet. I am trying to create a formula of the following nature:

='(Spreadsheet Name From Column G)'!(Cell Name From Columns H and I)

The Second half of the formula doesn't really concern me (i.e. the cell name from column H and I). However I am perplexed as to how to achieve the goal in the first parentheses above.

View 4 Replies View Related

Run A Macro Monthly

May 6, 2008

I have the following situation. I work off-site most of the time in another office. I would like to have a macro on my main office PC to run on a monthly basis at a set time.

For instance on the 15th of every month at 9:00 am the macro would go into a shared drive and pull an updated copy of a report, redo the report and send it out to various offices. I have VB code that performs all the tasks except for setting a timer to tell it too run on the 15th of every month at 9:00 am.

View 9 Replies View Related

Copy Certain Cells From 1 Spreadsheet To Other Spreadsheet Depending On Condition

Jan 13, 2010

I have noticed that the basic problem I have is a common one on this forum with different varibles for different people. I have attached a dummy copy of the spreadsheet that I am using.

I need to copy cell information for one spreadsheet to one of 2 other spreadsheets depending on a dropbox condition. The master spreadsheet is the Issues spreadsheet, and depending on whether the user chooses Transferred Complaints or Transferred Offences (in Column K) I need to transfer certain cells to the Complaints or Offences spreadsheets.

The information I need to transfer from Issues is: .....

View 13 Replies View Related

Autofill Cells On One Sheet When Cells On Another Are Inputted

Mar 21, 2007

I have got the task of doing the results for a local athletics mid-distance event once again and im fed up of doing it the present way. Basically i have a sheet which i input the race registrations which has the following collums: Number, Name,School,

and i have another sheet for results which have: Position,Number,Time. I then have to merge the two in a magical way and i get the results. However what i want to do is have the first sheet the same but the results sheet would be different reading: Postion,Number,Name,School, Time

But when i input the number, it will check with the other sheet and automatically fill the rest of the boxes (bar position and time) hopefully. Using my knowlegde i gathered at college(fairly average knowledge of vb) i still cant get it to work the way i planned. Is it actually possible to do, or should i go to my pet hate access?

View 2 Replies View Related

Modify Macro To Use File That Changes Name-monthly

Apr 20, 2007

I have this macro that I am using but want to automate the file it uses. This file has the last 5 text/digits change each month, e.g.

Internet_GB_Report_Feb07
Internet_GB_Report_Mar07

Clearly the next file would be Apr07. I would like the macro to identify this automatically and use the correct file without having to go into the macro every month and change the last 5 text/digits. If you have any ideas I would be very grateful to hear from you. The Macro is below:

[/code]strPath = "c:Internet"
strFilename = "INTERNET_GB_FEB07"
strThisWkb = ActiveWorkbook.Name
intReports = Workbooks(strThisWkb).Sheets("Lookups").Cells(1, 2)
Code:

View 9 Replies View Related

Autofill The Cells

Dec 8, 2006

I have this code present, however the autofill part needs to work by looking at the cells to the right & i dont know how to do this

Sub Merge()
Application.ScreenUpdating = False
Columns("A:A").Select
Application.CutCopyMode = False
Selection.Insert Shift:=xlToRight
Range("A10").Select
ActiveCell.FormulaR1C1 = "=IF(ISBLANK(RC[1])=TRUE,"""",RC[1]&RC[2])"
Selection.AutoFill Destination:=Range(Selection, Selection.Offset(0, -1).End(xlDown).Offset(0, 1))
Columns("A:A").Select
Columns("A:A").EntireColumn.AutoFit
Application.ScreenUpdating = True
End Sub

View 6 Replies View Related

Autofill In Macro ..

Dec 29, 2008

I am working on automating our truck payment system. When the macro copies the data over to the output printout sheet, it will only copy the information once, even though there are 15 lines that it should be copied to. When I originally recorded the macro, I used the auto fill option to fill the information for all 15 lines. However, when I run the macro the auto fill doesn't work for me.

View 8 Replies View Related

Autofill A Macro

Jan 29, 2010

I currently have a worksheet that, using a Form Button, generates a new worksheet that formats column widths, titles and also creates a file list of all files on my hard-drive along with date created and the full file path.

Each file has all of its information in one row.

From the original button that initiates the whole process I need the code to create a delete button for each file in the list using, I presume, the kill function.

The delete button would need to sit in column 'L' starting in cell '5' and autofill down. The kill function would pull the file path of the file to kill from the full file path displayed in column 'K', again starting in cell '5'.

I already have the code to genereate the file information (path, date created etc). I literally just need the code for the creating the multiple form buttons and assigning the macro to each button.

View 9 Replies View Related

AutoFill In Macro

Jan 2, 2007

code?

View 9 Replies View Related

AutoFill Macro

Jan 10, 2007

The following code works fine for what I want to do. I want to have a range a5:g5 copied and pasted on down to g200 - as you would do if you selected and draged the selection box on down to paste it. The problem is I want to avoid the ".select".

What solution whould I use?

Worksheets("GTopLists").Range("A5:G5").Select
Selection.AutoFill Destination:=Range("A5:G200"), Type:=xlFillDefault

View 6 Replies View Related

Entering Monthly Changing Workbook Name Into Macro?

Mar 7, 2014

i have a workbook that is doing a copy and paste between 2 workbooks.

the trouble i am having is every month workbook a changes to be the name of the current month and year workbook b never changes. so when a change in month happens the macro stops working due to new workbook name.

how could i have the macro reed the name of the work book and input that name into the necessary locations withing the macro.

View 2 Replies View Related

Increasing Cells By 1/3 With Autofill

Jun 11, 2014

I'm trying to find a formula that increase a cell by 1/3 that will work with auto fill.

For Example if auto-filling a column:
3
3
3
4
4
4
5
5
5

Or if auto-filling a row:
3 3 3 4 4 4 5 5 5

View 11 Replies View Related

Autofill Blank Cells

Jul 8, 2009

I have a column of names with some spaces e.g. A1: BROWN, A2:empty, A3:empty, A4:SMITH, A5: empty, A6:JONES etc. All the empty cells have the same name as the one above i.e. A2 and A3 should also read "BROWN". A5 should read "SMITH" and so on down the column. Is there away to create a formula that does this automatically. I've tried a simple if command in a duplicate column which looks at the first column and tests for a blank - if it finds one it enters the name from the cell above - but this only works once and some of the empty spaces need to be filled more than once e.g. A2 & A3 above.

View 2 Replies View Related

AutoFill Above In Empty Cells

Dec 15, 2009

how to find the next empty cell and then copy the data down, however; I am trying to do almost the opposite. I need to be able to click on a cell and have that cell's data copied above it until there isn't another empty cell. I will attach a small portion of my worksheet for viewing. Column A has account numbers and Column B has the brand of product. Unfortunately when I imported this data into excel from our software program it lists all the brands and then the account number is listed on the last row of brands.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved