Distributing List Of Numbers In One Column To Several Columns

Jul 23, 2013

I'm working with a dataset from a survey that has recently taken place. The original structure of certain questions in the survey were multiple choice. The ideal structure for these questions, in terms of variables, is that each possible option for the question (A,B,C,D... etc) have a separate value, with a 1 for yes (reported) and 0 for no (not reported). In other words, if Question1 has multiple possible answers (A,B,C...), then there should not be one variable created from this question, but rather, there should be a variable for each possible response: Question1_A, Question1_B, Question1_C, and so on. And within each of these variables, should be a 1 or 0 depending on if that option was reported or not.

The format I received the data in, though, was a single variable with a list of letters, (e.g. B,D,F) for each option reported.

Variable: Question1
Row 1 A, B, C
Row 2 B, E, F
Row 3 B, D, E

The data I have right now is housed in Excel prior to exporting to SPSS and/or STATA. I need to find a way to distribute these values into separate columns (variables). The tricky part, is that if I simply use "text to columns", it distributes the letters to new columns, but doesn't take into account that the first value reported might not be A. Is there a way to take the list of values in the single columns, and distribute them to assigned newly created columns?

View 6 Replies


ADVERTISEMENT

Distributing Numbers In A Pattern

Dec 21, 2008

I am trying to come up with a formula that will distribute the numbers as shown in this diagram:

To get the value of each number divide 42,000 by the last number in the pattern. For example the fifth column from the left would be 42,000/18. That means that each number would have a value of 2,333.33. By the time you reach the half way mark, nine in that example, you should have around 21,000, and the other 21,000 should be distributed between the last half (block 10 thru 18). The formulas would have to work on all of the patterns. Can anyone think of a way to match the pattern shown? It doesn't have to be exactly the same pattern just as long as the number of blocks remains the same for each half, and they total 21,000 for each half without going over 42,000 all together. There has to be 11 rows from top to bottom.

View 9 Replies View Related

Distributing Column Data Across A Worksheet

May 15, 2006

I have a sheet with 5 columns in use at the moment.
Col: A - E . Col C has a Score and Col D has Game #

I'll like some code to look at each cell in col D and based on the Game# copy the value from the corresponding Col C to the Game column that is set up for that Game. ( I can set these up manually )

Col D can contain both numbers or text

Something like

IF D2 = 23, C2 = H2
IF D2 = 29, C2 = M2
IF D2 = "HOME", C2 = W2

etc etc

Col D can contain up to 20 possible numeric values & 8 possible text values

Also: Since I know all the 28 possible values that Col D can contain, how can I also get those columns set up automatically using VBA and SUM those columns that are set up with the numeric values at the last row.

View 4 Replies View Related

Search For All Unique Numbers Down A Column And Print List Of Those Numbers In Another

Jun 5, 2014

Say column A has either numbers or text in each cell, I need a macro to only get each number in each cell that is not a duplicate of a number in any previous cell and list each number found down column B.

View 5 Replies View Related

Manage A List- List Full With Numbers In A Column

Nov 29, 2007

1- I have a list full with numbers in a column. And I want to count how many digits are there in every cells. If digit of the number is less than 7, macro will complete it to 7 digits by adding 0 (zero) at the beginning of the number.

Example: A1 = 85468... A1 value is 5 < 7 in this case our number will be 0085468 (total 7 digits)

PS: sometime, when numbers start with 0 (zero), excel delete all 0 value at the beginning of the numbers. Macro should prevent this error.

2- I have another list with 2 columns which arranged in order. I mean:
A1=xx1, B1=xx2, A2=xx3, B2=xx4, A3=xx5, B3=xx6... etc. One is at A column, next number in B column.

My request is I want to make this list 1 column as arranged.
A1=xx1, A2= xx2, A3=xx3, A4=xx4... etc.

3- Macro will add a new line to the end of the above list with this format:
Z00001xxxx

Z00001 is static
xxxx is number of the full cells of A column plus 1. It will be 4 digits. If count is less than 4, it will complete it to 4 digits.
Example: if there are 15 cells in the list, last line will Z00010016 (15 + 1)

View 9 Replies View Related

Sorting A List Of Numbers By Multiple Columns

Oct 13, 2008

I want to sort the list like this:

1) If there is a zero (null) value in all 3 months, these records should be at the bottom sorted by record name (I did not show this field in my file).
2) If there is a non-zero (non-null) value in any of the 3 months, the records will be sorted with each other by total change.

Is there a way to do this without me doing sorts multiple times and manually moving rows of data around (which is what I have done to arrive at the list I have attached)? I am not experienced with VBA or Macros, and would prefer a detailed explanation if a solution is using either method.

View 2 Replies View Related

Macro To Sort 2 Columns Of Numbers Into A New List

Jan 28, 2007

I am trying to write a macro that will sort 2 columns of real numbers in ascending order, then merge them in ascending order into a new 3rd column.

View 9 Replies View Related

List Of People In Column A And In B To E There Are 4 Numbers From 1 To 13

Mar 14, 2008

I have a list of people in column A and in B to E there are 4 numbers from 1 to 13. (Each person has 4 different numbers). In the next 24 columns are concatenations of these numbers in every order possible. On a separate sheet I have a list of concatenations of all possible combinations of numers 1 to 13 in groups of 4. e.g. 1234, 1235 etc. I have then counted how many times each of the concatnations from the first sheet appear. What I want to do is put the names of the people whoes concatentaions match the ones on the third sheet.

View 14 Replies View Related

List Column Numbers Greater Than X

May 13, 2008

I have been browsing this site for some time but never posted. It looks like a great community and looking forward to learning!

I am trying to create an array in VB that searches an entire column (L) that has nothing but numbers in it. I want to search for all numbers that are >= 6. If the number is greater than six store the value in column A. At the end, I need to display a message box that has all the values in A that match the criteria where column L is greater than 6.

I have found all kinds of copy to other sheet formulas and static finds.

View 7 Replies View Related

Check Column Against List Of Numbers

Jun 24, 2008

What I would like to do is have a macro check a column for any occurrence of a few different numbers, and then enter the text "n/a" in a different column of each row that one of the numbers doesn't appear in.

I have a list of part numbers that require a certain operation, and I'd like to mark off a cell for each item that does not require that operation. I've attached a simple spreadsheet that should help explain this better.

View 9 Replies View Related

Trimming List Of Numbers Into Adjacent Column

Sep 17, 2013

In the attached workbook I have groups of numbers in Col G

In col H I would like to trim col G to just one each of the numbers where there are duplicates (as shown).

Each group of numbers will have a blank row between.

View 2 Replies View Related

How To Combine Columns D-Y In Column Z Seperated By Numbers

May 27, 2009

How can i merge all the columns from Column D to Column Y in Column Z. The seperator between the Columncontents should be numbers in format "<<1>>" for column D, "<<2>>" for column E,"<<2>>" for column F........

i have a wordlist(arabic from right to left lanuage) containing words and meanings. Column A contains Words, Colulmn B contains Transcription, Column C contains Grammer information and the following Columns up to Column Y contain of Meanings.

!!!The meanings start with Column D which is then followed by E,F,G... Y. If any column cell is empty then it would mean, that the following cells of corresponding columns are also empty. For example if Colulmn D has content but Column E not, then it means that F,G,H...Y are also empty!

View 6 Replies View Related

List Column Numbers Result Show In Textbox

Mar 23, 2008

The list columns 5,7 and 9 has number entries.The userform has 3textboxes.is it possible to link total amount of this numbers result into the textboxes.Like column 5"CZ" entries total will showup in textbox10,column 9"DD" = textbox14

Private Sub TextBox2_Exit(ByVal Cancel As MSForms.ReturnBoolean)
Dim a, i As Long, ii As Long, b(), n As Long
ListBox6.Clear
With TextBox2
If .Text = "" Then Exit Sub
If WorksheetFunction.CountIf(Range("cv:cv"), .Text) = 0 Then
MsgBox "No Entry !"
TextBox2 = ("")
Exit Sub..........

View 9 Replies View Related

Dynamic Formulas- List Of Serial Numbers In A Column

May 26, 2006

i have a list of serial numbers in a column, say column a, for example, and i have corresponding data in columns to the right of this, say just column B for example- I also have a header on column B which counts the data in column b. (just a COUNTA, counting occurences of 'x' )

my issue is this: i need to limit the range of the COUNTA dynamically- by the number of serial numbers in column A. for example: if i have 10 serial numbers, i want my COUNTA range to be B1:B10 (excluding header) and... i need this to be a built-in formula, NOT a VBA macro. i need it to update automatically, as soon as another serial number is entered. i've tried using references to named ranges and all sorts of language tricks, and i cant seem to get it to work. (such as:

' =counta(b1:namedrange1)

i'm going to have to do the same thing with COUNTIF's, so if that is also easily explainable,

View 9 Replies View Related

Splitting Text And Numbers From 1 Column Into Separate Columns

Jul 24, 2014

I have some data that is both text and numbers in the same cell. I would like to split the the data so that the text is in one column and the numbers are in another column.

The numbers are all a fixed length (15 chars) so I know that I can use the following formula = RIGHT(A1,15)

However I am not quite sure how to split the text as the length can vary as as well as the number of words in the string.

For example A1 is 1 word with 7 characters but A2 is 2 words, 14 characters long inc space.

A1 Goodwin 000710280740120
A2 Gillette Ridge 000715058510122

B1 Goodwin
C1 000710280740120

B2 Gillette Ridge
C2 000715058510122

View 4 Replies View Related

Column List Sorting Locking 2 Columns Together

Sep 24, 2006

This should be a simple question for those who have the knowledge. I am making a 2 column excel page, the first column will have an authors name and the second one will have the book name. I need to lock these two columns together so that author name and book name always stay together (side by side) on the sort command. I need to be able to sort by author or book title and I realize that it gives you the choice to expand the selection, but I can't trust that the others (kids) will realize the importance of doing so. This is going to be a very large list with hyperlinks and I can't afford to chance whether someone else will select the correct command. So a long story short. I want to build a list that can be sorted by author name or book name and be sure that the correct author will always be beside the correct book, but that are able to be independantly sorted

View 5 Replies View Related

Distributing Add-ins

Apr 10, 2007

I've written an add-in that I need to give to about 30 people in my office. What's the best way to get the add-in saved in everyone's Windows Add-Ins folder?

View 4 Replies View Related

Convert 2 Column List To Multiple Related Columns

Nov 28, 2007

I have a long list of 2 columns containing data as follows:

col A col B
country1 date1-1
country1 date1-2
country1 date1-3
country2 date2-1
country2 date2-2
country3 date3-1
country4 date4-1
country4 date4-2
country4 date4-3

which I would need to move to get one row per country in column A with all related values from col B in multiple columns on a single Row, e.g....

View 9 Replies View Related

Distributing VBA Code Changes Via VBA

Apr 26, 2006

I have a number of identical workbooks used for data capture within the organisation, and need to continue development as time goes on.

Whenever I make a change to the core Excel functions of the workbooks I simply use a VBA procedure to conduct this change within each of the production workbooks, however I am stumped as to how I can achieve this for changes to the VBA code.

I have made some changes to the code held within one of the modules, and have also modified the form slightly. What I want to be able to do is run a VBA procedure that either updates the production workbooks from a central source, or by importing previously exported code / forms.

View 5 Replies View Related

Macro To Segregate One Column List Into Three Columns Based On Condition

Nov 21, 2012

Lets say we have data in Column A, B, C and D and no row left blank. In the column A no cell left blank however in B, C, D any one cell only contain a value in that row. If B10 has any value in it then C10 and D10 are left blank (not empty). I want to segregate the data in Column A based on the value in B, C or D. So this one column data ( that is Column A) will split into three column. this segregated data to be put in E, F and G.

Wherever Column B has any value that's greater than zero content from the column A from the same row should copy to the E, Wherever Column C has any value that's greater than zero content from the column A from the same row should copy to the F, Wherever Column C has any value that's greater than zero content from the column A from the same row should copy to the G.

View 4 Replies View Related

Distributing Excel Macros

Jun 9, 2007

I have a number of sheets that have sheet macros that are identical.... i am changing the sheet macro in 1 and want to see if there is an automatic way to distribute it to the other sheets automatically.

View 9 Replies View Related

Create Column List Out Of Table (rows And Columns) While Removing Blanks

May 26, 2014

I am trying to create a straight column list that can take the rows and columns of a table, and list only the nonblank items. The formula I am using only seems to work with one column, not multiple.

Formula:

[Code] .....

View 12 Replies View Related

Distributing Dollars Per Conditional Formatting?

May 10, 2009

I am using conditional formating to show dates as a bar graph (nice little template I got from Vertex 42). I have fee dollars in another column that I would like to distribute according to those dates. I have posted a snapshot of the image here:

[URL]

how I can get the dollars to populate the cells according to the dates.

View 7 Replies View Related

Distributing Days In A Range Between Years

Oct 31, 2013

I have 2 dates and I'm looking to distribute the days between in the correct 'year' column (See below). my problem is with the units that have days that span +2 years.

I've tried nested 'If(and...)' formula......

View 2 Replies View Related

Distributing Data Over Sheets Tabs

Feb 25, 2008

I have a master spreadsheet with names and addresses and action dates all in one sheet tab.

I want to be able to get all the data that pertains to action dates in March 08, for example, onto a sheet tab in the same spreadsheet called march 08, and then all the data from action dates in april 08 to go to a sheet tab called april 08 etc etc

What would be the best way to do this?

View 9 Replies View Related

Compare Multiple Column Of Data And List Out Common And Unique Component In Adj Columns

Jan 23, 2006

I am trying to compare multiple column in a worksheet to find
common component in all the columns and what is unique to a particular
column only. And list the results/finding in adj column. What i am
trying to accomplish is something as below.

BEFORE
Sheet1 Sheet2 Sheet3
Column2 Column2 Column2
02-1234-12 07-1234-12 02-1234-12
04-1234-12 03-1234-12 02-1234-12
05-1234-12 02-1234-12 06-1234-34

AFTER
Common to all Unique to sheet1 Unique to Sheet2
02-1234-12 05-1234-12 07-1234-12

View 14 Replies View Related

Excel 2007 :: Make One List Out Of Columns Based On Common Information In Column C?

Oct 12, 2011

Is it possible to take the information below and make one list out of columns F, H and J based on the common information in column C? For example, group all the 18s in a list, followed by the 44s.this is excel 2007

column CColumn Fcolumn Hcolumn J

Option code
18180L12369301/123/54
18180L12369301/123/54
18180L12369301/123/54[code].....

View 2 Replies View Related

Distributing Information From One Cell Into Multiple Cells?

Apr 22, 2009

I imported a CSV file into Excel, and the data from the CSV file all ligned up into one column. For example: I have (date, price) both in one column. I need to separate these values into two respective columns.

View 2 Replies View Related

Conditional PRODUCT Function Formula (return The Product Of A List Of Numbers In A Column)

Sep 30, 2009

I am trying to use a PRODUCT formula to return the product of a list of numbers in a column, between 2 specified dates. The spreadsheet is arranged as follows:

Column BA list of dates
Column C & DNumerical data not used in any calculations
Column EThe numbers to multiply together
Cell A1Start date to be used in the PRODUCTformula
Cell A2End date to be used in the PRODUCT formula

The formula I have to multiply the data in column E, subject to the start and end dates in Column A is:

{=PRODUCT(IF(B15:B1000>A1,IF(B15:B1000<=A2,INDEX(B15:E1000,0,4))))}

This returns zero though works appropriately if I replace “PRODUCT” with a “SUM”.

View 2 Replies View Related

Excel 2010 :: Move Part Columns Of Data From 6 Columns To Form 1 Large Column In Column A?

Jan 31, 2013

I have a large spreadsheet converted from pdf whose data still appears in A4 reading format.

I need to move part columns of data from 6 columns to form 1 large column in column A.

For example, move range B8 to B76 beneath range A8 to A76 and range C8 to C76 beneath that etc, page by page working through all 270 pages !

Also need to delete unnecessary 'page headers' throughout as in rows 2-6

View 2 Replies View Related







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