Create Sheets Based On Lines

Mar 25, 2014

result of command is like below:

Code:
Entity,DATE,A_C,A_N,A_T,A_C,N_C,PER
YYY,24/03/2014,222 , 0002,ALARM TEXT DIFFER IN TIMEFORMAT , 1, 1,3.03030303
YYY,24/03/2014,333 , 0001,SCRIPT FAILED , 31, 6,93.9393939
YYY,24/03/2014,111 , 0003,ALARMS NOT RECEIVED , 1, 1,3.03030303
Entity,Sub-E,DATE,A_C,A_N,A_T,A_C,N_C,PER
YYY,9999992867290,24/03/2014 ,333 , 0001,SCRIPT FAILED , 7, 1, 100
YYY,9999992813525,24/03/2014 ,333 , 0001,SCRIPT FAILED , 3, 1, 100

[code].....

Now I'm looking is when opened in Excel, it should create a two sheets excel file 1) with the First Section and the 2nd with second section . based on headers included in file.which then will be used for PivotCharts..in 2nd stage of automating..

View 3 Replies


ADVERTISEMENT

Search Sheets And Create Sums Based On Criteria

Jan 23, 2012

I have a workbook with many, many worksheets. On each worksheet there is a column called "Cost Code". I need a Macro to locate all like "Cost Code" values and extract data from several cells along that row. Macro would then tally the values from all those like cells on numerous worksheets and place sum on a seperate worksheet in the same workbook, on a "Totals" worksheet page.

For instance -The "Cost Code" value Macro to look for is 1000. This value is located on several worksheets. For every instance of "Cost Code" 1000 Macro is to find value of "Material Costs" in that row (always column M) and value of "Labor Hours" in that row (always column P). Macro would tally all "Material Costs" for "Cost Code" 1000 and put that sum on a "Totals" worksheet page in a specified cell. Macro would do the same for all "Labor Hours" for "Cost Code" 1000.

View 3 Replies View Related

Macro To Create Sheets In New Workbook Based On Template And Evaluator?

Feb 10, 2013

I had created a base data with evaluator and performance appraisals templates which should be sent to each evaluator for filling up the forms based on templates

Next,

Macro that would i require will be

Where in my base data if i select filter of "Arun", i will performance appraisal templates in column I. Next, i have sheets individually created templates which refer column I

So, based on arun filter if i select, it should create a new workbook for arun and six individual sheets of employees reporting to him with a base data and appraisal templates similarly if i select anita in filter , it should create a new workbook for anita and six individual sheets of employees reporting to her with a base data and appraisal templates

View 9 Replies View Related

Create And Name New Sheets Based On Text In Cell As Well As Copy Entire Row

Jul 20, 2013

I have attached a file showing what I would need the output to look like. I need to know how to search a range of cells (in this case column E) and if the day of the week is Wednesday to copy that entire row to the Worksheet titled Wednesday. I would do it manually but I have several thousand rows of data to get through, and there has to be a better way.

Example.output.xls

View 3 Replies View Related

Excel Macro To Create New Workbook Based On Category In List With Respective Sheets

Apr 27, 2014

I need new workbooks based on category name in the below list. Respective sheets should be copied from the existing workbook with items as sheet names. List can be updatable.

category(workbookname)Items(sheets)
Vegetables carrot
vegetables brinjal
meat chicken
meat Fish
meat Mutton
grains Wheat
grains Rice

View 4 Replies View Related

New Lines To Refer To Different Sheets

Nov 20, 2009

=COUNTIF(A2&"_RES","Yes")

A2 refers to a linked cell but I have tried without the link there still no joy. Together they would generate for example "DCA_RES" which would refer to a column range in a different sheet on the same workbook.

I want this to work so that I can implement more easily new lines to refer to different sheets. (Drag to copy) instead of having to copy and edit a formula 100 times.

View 6 Replies View Related

Saving Sheets As Text Files Results In Blank Lines

May 11, 2008

I load an text file into an excel sheet and after some eventually changes I save (overwrite) it back into the text file again. Now the text file has become a file with 50 pages (49 empty pages). How can I avoid this or how can I set an EOF when no more written lines follows. The code for saving the excel sheet is this:

Application. ScreenUpdating = False
Application.DisplayAlerts = False
Sheets(wsImport).Select
Sheets(wsImport).copy
ActiveWorkbook.SaveAs FileName:=WorkFolder & WorkFile, _
FileFormat:=xlText, CreateBackup:=False
ActiveWorkbook.Close
'ThisWorkbook.Activate
Sheets(wsKwartaal).Activate

View 6 Replies View Related

VBA Create Sheets With Buttons That Hyperlink To Different Sheets?

May 13, 2013

I run into is that many of our staff don't know there are tabs at the bottom of the page that show different worksheets. writing some VBA code that would grab the names of all the sheets and create a single sheet with the tabs listed as buttons that would hyperlink to each sheet of it's given name. Kind iof an index for the sheets.

Also bonus if 3 rows could be insterted on each of those pages with a button that links back to the index page.

View 1 Replies View Related

Inserting Lines Based On IF

Aug 13, 2008

I have an amount of data split into various fields. I need to do something similar to the following:

In each row I have three fields separated by columns: name, sector and specialty. There is only one name and one sector for each record, but possibly several specialties (of which there are fifteen types in total, so they do not appear in a consistent column. specialty 'i' could appear in columns 3, 4, 5 through to 17. ie, sample entries below:

sheet 1
a1 name a2 sector a3 specialty i a4 specialty iv
b2 name b2 sector b3 specialty ii b3 specialty iv b4 specialty x
c3 name c4 sector c5 specialty i c6 specialty ii

The thing is, for every specialty in a row, I need new records created, so the above would become:

sheet 2
a1 name a2 sector a3 specialty i
a1 name a2 sector a3 a4 specialty iv
b2 name b2 sector b3 specialty ii
b2 name b2 sector b3 specialty iv
b2 name b2 sector b4 specialty x
c3 name c4 sector c5 specialty i
c3 name c4 sector c6 specialty ii

View 9 Replies View Related

Combining 2-4 Name Lines Based On Column B

Jan 8, 2008

in column A i have account name but it can be up to 4 lines (rows)

in column B i have the fund name which goes with the first account name row

so...

View 9 Replies View Related

Macro That Duplicates Lines Based On Value Of Column?

Aug 22, 2014

I need a macro that duplicates lines based on the value of a Column. So in Attached excel D1 is 10 - I need it to create 9 entries for that line, so there are 10 total duplicate lines.

I had a Macro that worked that is in the document, I even had everything set up the same, which it is not now, but could not get it to work.

A Macro or a Finished document is fine, Just need this to produce raffle tickets for the church

Raffle Tickets.xls

View 2 Replies View Related

For Each Unique Value In Col A+B, Removing Lines Based On Column C

Jan 21, 2010

For each unique value of Order Number [col A] + Line Number [col B], I need a program which will locate the first instance of Next Stat [col D] = 530 and the first instance of col D = 540, deleting the other lines. The output will have two lines remaining for each unique col A+B combination, one where col D = 530 and another = 540. The data will always be sorted in date/time order prior to running this program. The actual data set has a varying number of lines, usually 1000+.

View 4 Replies View Related

Create A Chart To Create Totals Based Upon Different Keys

Aug 7, 2006

Trying to create an excel chart to create totals based upon different keys. I
need to be able to calculate how many customers there are by Manager and then
By Rep. Then to figure out how many were New, Current, Total # of RSVP and
attended for that Rep. Below is how I have started but I am having some
problems getting certain parts. I know when I get one the rest will fall into
place. I can calculate how many total customers by manager and by rep just by
doing a Countif command but how do I determine the # of New, Current etc. Is
there a If Than command? Managers Totals are simply his reps totals.

Example..
A B C D E
F G
1 Manager Rep Customer New Biz Current # RSVP # Actual Attend

Need totals to look something like this....

A B C D E
F G
1 # of Cust # New # Current #RSVP #
Actual Attend
2 Manager
3 Rep 1
4 Rep 2

View 15 Replies View Related

Shorter Macro To Move All Lines Based On Cell Value

Jun 9, 2014

Basically I want to copy and paste all data in a row if the value in a cell is equal to something

I am currently using the below formula

The Value in red = Set tgt = ThisWorkbook.Sheets(Criterion.Offset(, 1).Value 'Pick the cell next to the cell containing the criterion).

But my issue is now that i will need this to work based on 37 values and having this macro 37 times with the value changed and 37 buttons will be difficult.

So I am looking for a way i can add multiple values each going to separate sheets.

View 14 Replies View Related

Copy Data On New Lines From A Source Sheet Based On Criteria

Oct 2, 2006

I have a source sheet which contains data. Within this data there is a column (column 3) called Name and I would like to take the data from this sheet and paste it onto a new sheet but in grouped format. So take all instances where it finds criteria 1, then 2 and so on and just paste it on a new line each time it finds a criteria. So far I have the following code to search

Sub loopy()
Dim rngTemp As Range ' the range variable declaration
Dim intCounter As Integer 'counter as integer
' the following loop goes through all the cells in column a up until the last used cell in the column
For Each rngTemp In Range("a1", Range("a" & Rows.Count).End(xlUp))
'increment the counter if the cell has value fridge
If rngTemp = "Fridge" Then intCounter = intCounter + 1
Next rngTemp
MsgBox "There were " & intCounter & " cells equal to Fridge"
End Sub

View 2 Replies View Related

Create Sheets From Ranges

Oct 16, 2009

I have this file, I would like to create a sheet for each different supplier code (column D), and each sheet named with the supplier code.

View 3 Replies View Related

Create New Sheets And Rename VBA

Jul 24, 2012

I have a worksheet titled "master plan" with many columns of data. I want to create many tabs based on this data.
One tab I want that just has the data from columns C, F, A, E, G and L (in that order) Starting with the header data in row 2. And titled "LOB".

Then I want a different tab for each unique item in Row C with these same columns (C, F, A, E, G and L from "master plan" tab or A, B, C, D, E and F from new "LOB" tab). The tab name should be the unique row C value.

So for example, say that there about 20 rows where 'A' is in column C, about 30 with 'B' in column 'C' etc .... There should be a tab with the name 'A' with those 20 rows of data and a tab with the name 'B' with the 30 rows with B and so on.

I also would prefer not to have to delete the existing 'A' and 'B' tabs every time before recording the macro so if it can either create a new tab or replace an existing tab with that name if it already exists.

To make things a little more difficult.. for the (in this example) 20 items with an 'A' in column C, there are (at this time) 3 different possible items in column B of 'master plan'. I'd like to create 3 separate tabs for each unique value in column B and I want the name to be dependent on the data in Column B (for example, the three unique items in column B with a column C of 'A' are Red, Green and yellow. I want three new tabs set up for each and the tab names to be: if B = Red, then tab name = 'Stop', If B = Green, then tab name = 'Go', if B = Yellow, then tab name = 'Slow'.

I have something that partially works, but I have to create the 'LOB' tab first and it doesn't work if any of the sheets already exist. And it doesn't do the Red, Green, Yellow part.

Here is what I currently have:

Sub DeptTabs2()
Dim strSrcSheet As String
Dim rngSrcStart As Range
Dim rngSrcEnd As Range
Dim rngCell As Range
Dim strLastDept As String
Dim intDestRow As Integer
On Error GoTo ErrHnd

[Code] ..

View 6 Replies View Related

Create Multiple Sheets

Jul 16, 2009

i have a master Sheet which have 15000 Entries (A:A15000) many are Duplicate, Unique is 63 . Now i want to make the 63 Sheets in a Same Workbook as per these Entries.

I record the Macro for the first 7 Sheets. Now how can I Modifiy this Macro to 63, Instead of record again for another Entries.

Actually, I have recevied a File some time it has 15000 Company Names sometime 20000 and sometimes 2000, Now i want to Make the Sheets according to Company Name Wise.

Now , i know how to record the Macro, but i want to know how to Modifiy the Macro.

" How to Learn and Modifiy the Macros"

My code

Sub CreateSheets()
'
' Macro1 Macro
' Macro recorded 7/16/2009 by AAditya
'
' Keyboard Shortcut: Ctrl+w
'

View 9 Replies View Related

Create Range Across Sheets

Feb 26, 2008

This is more acedemic than anything, but I'm trying to create a range that refers to ranges on more than one sheet... is this possible? "Union" doesnt appear to work when the ranges are on different sheets. Netither of the Set My_Range3 statements work below.

Option Explicit
Public Sub test()
Dim My_Range1 As range
Dim My_Range2 As range
Dim My_Range3 As range
Set My_Range1 = Worksheets(1).range("A1:A10")
Set My_Range2 = Worksheets(2).range("B1:B10")
'Set My_Range3 = Union(My_Range1, My_Range2)
'Set My_Range3 = range(My_Range1, My_Range2)
My_Range3.Interior.ColorIndex = 3
End Sub

Both Set My_Range3 statements will work if the ranges are on the same worksheet.

View 4 Replies View Related

How To Create Mirror Copy Of Sheets

Feb 22, 2013

I want to make a mirror copy of worksheet so that i can use filter option more than one names for the same column and for same sheet.

View 5 Replies View Related

Create Multiple Copies Of Sheets?

Apr 5, 2013

how to create multiple sheets ? in a workbook if i want to create multiple copies of the same sheet, what is the shortcut method to do that?

View 5 Replies View Related

Create One List From Multiple Sheets

Mar 5, 2014

I got an employee list from couple of Site in different sheets it contains Employee name & Department but not a continued list, i.e.

on the attached file, i am looking to populate Summary Sheet, no of Sites, deparments & agents varies.

I want the Site, Department & Agent Name to Populate into one continues list without empty cells .

View 4 Replies View Related

Create Sheets With Specific Color For TAB

Mar 28, 2014

We have A,B,C,DE scenarios and we need to create 6 sheets for all the scenarios and a "Result" sheet in the spreadsheet:

ATC1.....ATC6 - All A in Black colour
BTC1.....BTC6 - All B in Yellow colour
CTC1.....CTC6 - All C some Light Blue
DETC1.......DETC6 - All D some Light Grey
Results - This will be Green color

I did a manual work around by recording a macro:
Create Sheet
Rename as ATC1
Coloured sheet as mentioned above.
Copy paste for each sheet name which will be around 25 times of the below code snippets but ofcourse change colour and change sheet names.

View 2 Replies View Related

Create Report Comparing 2 Sheets

May 12, 2009

Every day i create a attendence sheet with names, who was attening a club the last 21 days.
I need some kind of report showing who is in Sheet1(Today) and not in Sheet2(Yesterday)="new people" and who is in Sheet2 but not in Sheet1 (people that stoped attending, droped out the list).

I tryed with "countif" and "Vlookup" but have to change the formulars on two sheets every day and i would rather like to leave leave the Sheets untouched.

View 7 Replies View Related

How To Create Array Of All Sheets In WorkBook

Nov 11, 2011

Sub Macro2()
Dim stgSheets As String, Cnt As Long
Dim arrSheets()
Cnt = Sheets.Count
ReDim arrSheets(Cnt - 1)
For i = 1 To Cnt
stgSheets = stgSheets & Sheets(i).Name
arrSheets(i - 1) = stgSheets
'sSheets = sSheets & "", ""
Next i

[Code]...

View 2 Replies View Related

How To Create Sheets From A List Of Names

Mar 1, 2012

I have a macro that creates sheets from a list of names. I have a template which is copied.

Sub CreateSheetsFromAList()
Dim MyCell As Range, MyRange As Range
Dim MySheetName As String

[Code]...

Sometimes I have to update that name list.

What I need is to have some addition that checks if the sheet does exist, if it does I want to skip and move on to the next name.

View 3 Replies View Related

Create List From Same Cell On Other Sheets

Nov 22, 2007

I have a workbook with a main worksheet "template", from which other sheets are created. Each worksheet has a specific value found in cell D8.

I want to collect the values found on each worksheet (in cell D8) and list them on the first sheet.

View 3 Replies View Related

Create Ledger Account In Multiple Sheets?

Mar 13, 2014

I have CASHBOOK Worksheet and I want to create a LEDGER Account in Multiple sheet

View 2 Replies View Related

Create Separate Sheets For Each Team By Year

Feb 27, 2014

I have a code that will create separate sheets from “SDL_Calendar” sheet for each team and its working fine. Modify the code to create sheets for each Team BY YEAR based on user selection in Cells “H6”, “H7” and “H8” in “P6_Report” sheet. For filtering BY YEAR Column "D" Can be Used in “SDL_Calendar” sheet.

I have attached the work book of what I am trying to accomplish :

[Code] ......

CreateSheetsByYear_new.xlsm‎

View 14 Replies View Related

Create Summary Sheet From Multiple Sheets

Mar 4, 2014

My boss requires me to prepare forms for vouchers that we release to our suppliers.

I encode the details manually to excel with his prescribed format. each voucher are encoded on separate sheets on one file.

Now he requires me to prepare a summary for all the voucher forms which is now becoming a pain since i now hold 50+ suppliers. and each day i encode about 120 vouchers.

I found through this forum that there is a way to automate tasks on excel like preparing a summary sheet.

View 3 Replies View Related







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