Combine Two Column Headers For Another Column?

Feb 24, 2014

I have individual date columns with calculated field in the next column, and this goes on for the rest of the worksheet. Example,

Column Header H to N consists of dates ranging from 2/24/2014 to 3/2/2014.
Column O will be the new column.

I want to change the new column header with the combined dates in the first column and the last column , i.e. the column before the new one, with a "To" text in between these two values. That way it becomes easy to identify the new column headers which are supposed to be week-wise.

So, for this example, it will be Column O = "2/24/2014 To 3/2/2014"
i.e. Column O = "Column H1" To "Column N1"

View 1 Replies


ADVERTISEMENT

Listbox With Column Headers As Specific Sheet Column Headers?

Jun 7, 2014

I have a userform with two listboxes in them, i have set the columns in the listbox to 9 and would like to populate the column headers in the listboxes with the column header of one of the sheets.

View 5 Replies View Related

Move Data From One Column To Another Based On Column Headers And Row Text

Feb 7, 2014

I am in need of restructuring a spreadsheet of addresses for mailing purposes. (I tried to find something similar answered previously, but nothing seemed to work for me.)

I have attached a small example spreadsheet below, but our spreadsheets can be hundreds or thousands of rows in length.

I need a macro that will look for the "PO Box" addresses under the column headers named "ADDRESS2" and "ADDRESS3".

The PO Box addresses will need to be moved under the column header "ADDRESS1" within the same row.

It will need to overwrite the text that is already under "ADDRESS1" and delete the text from the "ADDRESS2" and "ADDRESS3" columns - UNLESS the text in 'ADDRESS2" is a PO Box AND "ADDRESS1" begins with "c/o".

If the data in "ADDRESS2" or "ADDRESS3" is anything other than a PO Box it will remain the same. As will "ADDRESS 1".

Basically if there is a PO Box it needs to be in the column named "ADDRESS1" and overwrite anything else that was there. The exception will be for PO Boxes that are in c/o someone else, the PO Box will then need to be listed in the column directly after the column that has c/o.

If the c/o exception will be too difficult the code could just highlight those scenarios and we could fix them manually. We usually do not have a lot of them, but enough that we need to be mindful of them.

The different scenarios are listed in my sample spreadsheet.Also, the code will have to use the column header names in row 1 because those headers are not always in the same column.

View 14 Replies View Related

Column Lettering Changing To Column Headers

Nov 19, 2013

I have been given a spreadsheet with standard configuration with column headers etc, but when you scroll down the sheet the actual column headers change from the normal A-Z display to be the column headers that have been entered into the cells.

I know this can be achieved similarly by setting Freeze Pane but how this other option has been switched on. I have attached the spreadsheet (which has totally fictitious content).

View 6 Replies View Related

Data Under 1 Column, Need To Seperate Under Different Column Headers

Jan 29, 2010

I have data as follows in Column A:

Part Number: 0000000-1 ARTEC-GH-56S 12A
SPARES in Repair: 20

On-hand: 100Location: BNCD

I need the data under different columns as follows: I also want an extra column before Column A labelled as Common number.

A B C D
Part Number SPARES ON HAND LOC

0000000 20 100 BNCD

View 11 Replies View Related

Column Headers

Jul 19, 2007

on a vb user form list, made from the control toolbox

I enable collumn headers but have trouble populating them

From what i could get from google, it seems the only way to populate them is by having the data on an excel sheet. Can you just do it through code?

I have another list which the data is on an excel sheet but I can't get my headers working.

I have been using

frmAct.listCodes.RowSource = ("A1:C39")
frmAct.listCodes.RowSourceType = ("Value")

It doesnt like "Value"

View 9 Replies View Related

Sum By Name In Column & Between Headers In Row

Mar 2, 2009

In the attached file is it possible to use cell/ array formula in cells P3 to R6 to lookup names (Column O) within the data range (Columns A - M) and return the values shown in the yellow shaded area?

View 8 Replies View Related

VBA Script For Combine Headers.

Dec 16, 2008

The raw data that I download breaks up the header into 5+ rows.

Ex: "Patient Med Rec No"

Would be all in column E but in different rows:
Row 1: Patient
Row 2: Med
Row 3: Rec
Row 4: No

Some have 5 rows of headers, some with 1 so its different for each header title.

Sometimes I have over 30 columns to fix.

Is there a way to insert a new ROW at the top and concatenate everything? Even if some rows have blanks and possibly more that 5 rows?

View 9 Replies View Related

Excel 2013 :: No Column Headers?

Nov 28, 2013

My and a work college needed to combine our separate excel worksheets into a single document.

Office 2013 didn't have a function to "import sheet from file" so we used open office to import my .xlsx worksheets.

After we finished importing we exported the final workbook as .xls (so I could open it).

After opening the workbook on my pc (excel 2013) i notice some of the sheets no longer have column headers, but the row headings still exists. (No ABCD, only 1234)

Also I am unable to use features such as "Freeze Pane"

I suspect this was caused by importing and exporting through open office?

View 4 Replies View Related

Formula Bar Covering Column Headers

Jun 13, 2006

How do I set up the formula bar so it doesn't cover the column headers?

View 1 Replies View Related

How To Return Column Headers For Where Certain Values Appear In Each Row

Mar 16, 2014

I want to return the column headings (the months) where there is a 'No' value, per person. How to do this?

Here's the screenshot

Screen Shot 2014-03-17 at 11.45.34 am.png

And here's a dummy version:

Example Spreadsheet.xlsx

View 3 Replies View Related

Sort Button In Column Headers

Mar 14, 2013

I have a table with headings for each column.

How can I make the columns headers buttons/clickable, so that it sorts the rows on the column that was clicked upon?

View 2 Replies View Related

Pivot Table And Column Headers

May 21, 2006

I want to include columns in my Pivot Table where there is no data for that column. For example, I want to show 12 columns, one for each month, but my data only has 9 months of values.

View 3 Replies View Related

Dynamic Column Headers In Combo Box

Jun 29, 2007

My spreadsheet has in the region of 30 columns, more will be added on occasion in the future and ultimately I want to have each of the column headers appear in a 2-tiered dependent combo box. In the following structure:

Category 1:
Header 1
Header 2
Header 3
Category 2:
Header 4
Header 5
Header 6
Header 7 etc...

What I'm not sure about is what the most efficent way of making it so that it will automatically add new Column headers (and possibly categories) to the drop-down box so that it does not need to be re-coded in the future.

View 8 Replies View Related

Combine Worksheets Into One Based On Headers

Jul 16, 2012

I have a a client who sends me an excel workbook quarterly. There are 90 worksheets and each has 20 language columns which are suppose to be the same on each worksheet.

My Problem is I want to merge them into one worksheet so i can add them to a database, but the client keeps changing the order of the languages!

So as an example I need to be able to identify the Polish, Russian and English columns on every worksheet and then combine each language to a new column on a new worksheet.

View 9 Replies View Related

Macro To Delimit And Create Column Headers

Jan 15, 2014

I have a column with rows having strings as below (see sample.xlsx excel attached) .

I want to delimit the string in such a way that the for each parameter, the parameters will beome columns with headers and the value against them will be shown in thier respective column. The output tab in the attached excel might make what I am trying to convey more clear.

So basically CPU should have its own column and its time against it.

There are thousands of such column that we wish to analyse and therefore the ask.

I tried various option to delimit including recording a macro but did not work

CPU: 5,622.871 ms, Sync: 0 ms, Wait: 0 ms, Suspension: 2,399.921 ms

View 9 Replies View Related

Combining Column Data When There Are Duplicate Row Headers?

Apr 10, 2014

I currently have a worksheet filled with data from other worksheets. I want to combine data from different columns when they share an identical row header and don't know how. For example:

1b--
1--c
1-d-
2-x-
2y--
2--z

Would go to:

1bdc
2yxz

Another specific issue is that some row headers are bold and need to be considered a separate header from the non-bold alternative.

View 4 Replies View Related

Sorting Macro Replaces Column Headers?

Apr 11, 2014

I'm having an issue where I have a macro (see attached file) that is supposed to auto-fill and sort. Twhen it tries to run the auto-fill on a sheet in its blank/template state. It will take my formulas in columns AC:AZ and fill them up to the header row.

[Code]....

This code was hobbled together using record macro and my minor understanding of coding.

(CK) Macro issue.xlsm

View 7 Replies View Related

Row Based Reports With Column Headers As Values?

Mar 4, 2013

I have a small sample table that replicates what I am trying to do

A
B
C
D
E

1

Bob
Jim
Mary
Sue

[Code] ........

I would like to have excel put in compile the list of members on Teams 1 through 4. So in A7 through A10, I will put the teams and then in the B column I want the compiled list seperated by commas for each team so that they read like this...

Team 1: Bob, Jim, Mary, Sue
Team 2: Bob, Jim, Sue
Team 3: Bob, Mary
Team 4: Bob, Sue.

Of course this should be dynamic so that if I place an x in C4, then Team 3 would read as Team 3: Bob, Jim, Mary.

I have tried various index match offset combinations and did not have any success.

View 3 Replies View Related

Create Named Ranges From Column And Row Headers

May 6, 2013

Is there any way in Excel to create single-cell named ranges from a combination of the labels in the rows and column of a spreadsheet.

Here is an example:

CompanyA
CompanyB
CompanyC
CompanyD

Sales
100
200

[code]....

I would like the first cell (containing the 100) to have a defined name of (something like) "SalesCompanyA", and the second cell to be "SalesCompanyB". And so on - e.g. the cell with 300 in it should be "CostCompanyA".

I can do it manually, but I have a huge spreadsheet & was hoping it could be automated. Just to be clear, it needs to be a single cell range. I know you can create a range from a selection - but this seems to create ranges of the entire row and/or column.

View 6 Replies View Related

Lookup Macro Based On Column Headers

Apr 24, 2014

Ceating a macro to perform a look up and return based on column headers.

General Synopsis: Using a call and parameters to choose a lookup column and return column, and their respective sheets. Then the sub routine finding their respective column headers and perform a lookup/return. Essentially the current problem is the macro runs to slowly.

Link to original post: Lookup Macro based on column headers

View 1 Replies View Related

Pulling Column Headers Based On Table Values (not Max Or Min)

Jun 12, 2014

I've done some searching and cannot find the right answer for my question. I need to create a formula that will pull column header text data based on cells within a table that contain a numeric value not equal to zero. The catch is that I cannot use any one specific numeric value as the basis for a Lookup.

I've attached an example spreadsheet for reference. Basically, I need two formulas:

1. Formula to pull column header (Receiver name) based on Sender. This is a necessity.
2. Formula to pull individual lines for those senders that have multiple receivers (Division D in my example).

My actual data file has 80+ senders and 100+ receivers.

View 6 Replies View Related

Convert Multiple Rows To Columns And Add Column Headers

Oct 17, 2009

I'm currently faced with a spreadsheet that has data formatted like this:
A
1 RandomRowofData1
2 RandomRowofData2
3 RandomRowofData3
4 RandomRowofData4
5 RandomRowofData5
6 RandomRowofData6
7 RandomRowofData7
8 RandomRowofData8
9 RandomRowofData9

Every 9 rows, a new "set" of data repeats itself (wow, this is so hard to put into words)....

I need to figure out a way to get the data in column "A", every 9 rows, to transpose itself into 9 separate columns.

View 4 Replies View Related

Excel 2010 :: Autofill Date Into Headers Of Column

Feb 19, 2014

I have been struggling to find where my code is throwing up an error 1004 on the last line of the below code. I have a number of tables which will update automatically from Pivot tables on another sheet.

So the first part of the code is adding in the new column and then I want to autofill the date into the headers of the column which I thought the below would do, but I just don't understand why I keep getting the error. My data is dynamic as it will grow month by month which is why I am using R1C1 referencing.

Sheets("PNN Table").Cells(9, 16384).Select
ActiveCell.End(xlToLeft).Select
ActiveCell.Offset(0, -2).Select
Selection.AutoFill Destination:=Range(Selection, Selection.Offset(0, 1))

View 3 Replies View Related

Populate Listbox With Column Headers From Multiple Sheets

Oct 17, 2007

I am trying to go through each worksheet and if the worksheet name is Hematology then the header columns will be put into the listbox (ListBox1). The first row of the header is the parameter and the second is the units. Ideally I'd like column 1 to have the first headr row and column 2 to have the second header row. Once the listbox is completed, the user can select multiple columns by the header and those columns will be deleted. I have the ListStyle set to 1-fmListStyleOption and MultiSelect set to 1-fmMultiSelectMulti

The only thing I get when I run the rubroutine is a userform (Hematology), an empty listbox (ListBox1) and my two command buttons (Nothing to Delete and Remove Parameters).

Private Sub Hematology_initialize()
Dim Wrkst As Worksheet
Dim Header1 As Range
HeaderRange1 As String

For Each Wrkst In Worksheets
If Wrkst.Name = "Hematology" Then
For i = 1 To Wrkst.ColumnCount
Set Header1 = Wrkst.Cells(5, i)
HeaderRange1 = Header1.Address & ":" & Header1.Offset(1, LastColumn).Address
With Hematology.ListBox1
'Clear old ListBox RowSource
.RowSource = vbNullString
'Parse new one
.RowSource = HeaderRange
End With
Next i
End If
Next Wrkst
End Sub

View 9 Replies View Related

Combine Two Column In D Column With A Formula?

Mar 4, 2014

I have two columns B & C

in B Column the content is a date (2/26/2014) and in my C column is time ( 4:17:47 PM)

I'm trying to combine them in D Column with a formula: =B1 + C1. but it giving me a result #Value!.

I know I did this before, but I don't know now why its giving me error.

View 9 Replies View Related

Combine Rows Within Column Ref Another Column

Sep 11, 2008

I've got a good-sized single sheet workbook (A1:I8851) that I need a fairly complicated (seems like it to me, anyway) macro to get data in line from column to column. Here's what I've got:

Column A is titled "Category", and Column D is "Description". The actual category listings are in merged cells, spanning anywhere from 5-12 rows. Column D has no merged cells, but many (not all) cells in D contain data carried over from the cell above it (instead of wrapping the text, for some reason it just inserted into a new cell). The number of merged cells in A is equal to the number of unmerged cells in D.

I need a macro to combine each of the multiple rows in D into one single row, stopping and starting over when it reaches the next Category row. That way each category will have a single description line without incorporating parts of the description from the category above or below it.

View 14 Replies View Related

Create Pivot With Worksheet That Has Split / Complex Column Headers?

Jul 3, 2014

it doesn't like the fact I have split column headers and I was wondering if there was a way around it or another solution to save me time manually counting or filtering. I can't attach the actual spreadsheet for some reason but attach a screenshot to illustrate what I mean.

I need to count the number of 1's, 2's, 3's etc in each 'On Exit' column for each area. I then need to work out what percentage of the cohort they each are.

View 9 Replies View Related

Excel 2010 :: Formula Referencing Date Headers And Column A Criteria And Return Sum

Jan 9, 2013

I have a rolling 12 month (each day in column) tab in Excel 2010 that references variances by ID number in column A, and the column headers are each day for 366 days (2011). I would like to create a tab that shows the past 10 day's variances by ID number. I haven't been able to write a formula that will look at the date headers and the row ID number to return the figure for that day. Here is a sample of the 12 month rolling and the 10 days at a glance that I want to populate.

Rolling 12 Months
IDName12/25/201212/26/201212/27/201212/28/201212/29/2012and so on
1234Employee Name - - - - (11.07)
1235Employee Name - - - 0.20 -
1236Employee Name - - - - -
1237Employee Name - - - - (1.00)

[Code] .........

View 4 Replies View Related

Combine 2 Columns With 3 Choices Into 1 Column?

Feb 18, 2014

I have 2 columns "H" and "I" from line 6 to 409. Each cell may start with AR , MA or a number. If cell H6 starts with AR I would like to put that cell into B6. If H6 does not have AR then I would like to check I6 for AR, and put that into B6 if it's found. If I don't find AR in either I would check them both for MA, and write the cell that finds MA into B6. If the AR or MA are not found then I would want it left blank. I did try

IF(FIND("AR",$H7,1),$H7,IF(FIND("AR",$I7,1),$I7,IF(FIND("MA",$H7,1),$H7,IF(FIND("MA",$I7,1),$I7," ")))) in B7.

View 6 Replies View Related







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