Pull Data From Different Columns Based On Info In Column "A".

Aug 25, 2009

I'm having a little trouble figuring out what formula to use for situation. I have 5 columns of information.

Column A = School # of current school
Column B = School 1 Name
Column C = School 2 Name
Column D = School 3 Name
Column E = School 4 Name

What I want to do is in Column F to look through a row of information and find the current school.

So:
If A="1", pull from B
If A="2", pull from C
If A="3", pull from D
If A="4", pull from E

I tried doing a VLOOKUP table, but I think I'd have to do one for every row, but I could be wrong. I also thought of INDEX(MATCH), but I couldn't quite figure it out.

View 2 Replies


ADVERTISEMENT

Match Names In Two Separate Column If Equal Then Pull Info In 3 Column?

Dec 6, 2013

I need to look up the name in E2 in the list in column A and if it matches then lookup name in F2 in list column b, if it matches then the corresponding number in column C is displayed in column G. If neither names are in the 2 columns the words"Not on lists" is displayed in cell in column G.

The other problem is one name is spelled two different ways I want it to look for both spelling before moving on to looking up the second name.

I started with this formula but I'm getting #N/A or "not on list" when they are on the list. I'm using ranges prod_sum is columns AthruC, Last_name is range BthruC. =IF(AND(VLOOKUP(F4,prod_sum,3,0),VLOOKUP(I4,last_name,2,0)),"not on list")

View 6 Replies View Related

Reorganizing Data To Show Info From Two Separate Columns In Third New Column

Feb 5, 2014

I've got a problem with organizing my data. I've performed a study with several participants, each of which does several trials with 8 conditions (1,2,3,4,5,6,7, or 8), with each participant doing a condition more than once. I also have a separate column telling me whether they responded correctly or incorrectly (with a 1 or a 0).

I need to find a way to produce a new column to identify whether they got each condition (of the conditions 1,2,3,4,5,6,7, or 8) correct separately, i.e one column for responses to condition 1, one for condition 2 and so on....

It would also be useful if there was a way that once this is done I could summarize their accuracy of responses to each condition.

I've attached an example of my data. excel problem example.xlsx‎

View 14 Replies View Related

Move Info In One Column Based On Data In Another Column

Aug 28, 2012

I am trying to move a column of numbers based on the information in another column. I've been looking for about a week and find macros that are close but not quite.

In one column it reads Mobile, Home, or is blank. If the number is a Mobile (column R), the area code (column P) needs to move to column S and the phone (column Q) needs to move to column T and the primary phone (column R) needs to move to column U. Home and blank cells remain as they are.

area (P)
phone (Q)
primary phone (R)
col S
col T
col U

[code]....

View 7 Replies View Related

Pull The Data From The First Column Based On The Ranking Of The Second Column

Sep 15, 2005

Item Quantity
A 2
S 7
D 3
F 6

I am looking for a ranking formula that will pull the data from the
first column based on the ranking of the second column
so that the end result will look like this
1 S
2 F
3 D
As S has the largest quantity, F 2nd largest etc

The list I will pull this from is variable in length but in the
hundreds.

View 9 Replies View Related

Macro To Pull Data From Multiple Sheet To Main Sheet Based On Column Headings

Sep 13, 2012

I need a Macro which pulls the data from different sheets of excel (which is not formatted properly) to Main Sheet. Also some of the columns will not have the same names, so macro should handle this exception as well.

View 8 Replies View Related

Conditional Formatting - Use Info From 2 Columns To Format 3rd Column

May 24, 2014

conditional formatting in Excel. I have two columns with pertinent information. I need to know the following and format accordingly:

1. Is the number in column A positive or negative?
2. Is the number in column B less than 0.05 or 0.10?

I would then like Column C to just be highlighted a certain color depending on the combination... there are 5 possible combinations and I would like the cells to be formatted so that:

1. Positive and less than 0.05 - Bright yellow
2. Positive and less than 0.10 - Pale yellow
3. Negative and less than 0.05 - Bright green
4. Negative and less than 0.10 - Pale green
5. This "combo" just means the criteria wasn't meant... which is possible b/c sometimes Column A may have text instead of a number of b/c the number in column B is not less than 0.10. If either of these is true, I want the cell to remain blank.

View 5 Replies View Related

Separating Mailing Address Info From 1 Column To Multiple Columns?

Dec 18, 2007

Whoever created my customer contacts Excel sheet prior to my arrival entered all of the contacts address information into one cell and in order for me to put this info into Access, I need them seperated. For example:

10000 X Street Louisville, KY 40291 is in cell E2

I would like it to read:

10000 X Street in cell E2
Louisville in cell F2
KY in cell G2
40291 in cell H2

They also did this with phone numbers (ie. desk# / cell# / fax#).

There are over 1000 contacts in this sheet, so it would take forever to split these apart row by row.

View 4 Replies View Related

How To Fill Vertical Columns With Info From Horizontal Info

Aug 22, 2014

I have attached a spreadsheet and I am trying to capture the info in lines 2,7,12,17 and return the info into column d,e,f,g

The info in these columns at present has been manually entered but I am sure it could be automated.

OOL Roster Final 18-31Aug14.xlsx

View 1 Replies View Related

Formula To Pull Latest Date From One Column Based On Entry In Adjacent Column

Jun 6, 2014

Any way to construct a formula in excel that will look at a reference in one column and find the latest date from the data in an adjacent column for that specific reference?

Below is an exctract from a much larger sheet of the columns in question.

The result in the last column should be 21/05/2014 for anything with D.O.001 in the second column and 15/05/2014 for anything with D.O.002.

Date Decision agreed
Disposal Order
Latest Decision date for D.O.

06/05/2014
D.O.001

[Code] ........

View 6 Replies View Related

Pull Certain Info From One Worksheet To Another Only Containing Certain Values?

Jun 11, 2013

I don't really know how to search this question but what I am trying to do is pull information from one worksheet to another only containing numbers greater than 0. For example, i have an order sheet containing everything that is in stock, then I go down the list and put in the number of items being sold (1,2,3, etc). Some items will have a value of zero.

Then the items that have numbers (the ones that are being sold) I want to be able to pull these numbers along with the item description onto another worksheet which will be the invoice. Then excel will add up the prices of only the items being sold and give me a total value on the invoice. Is this doable?

View 9 Replies View Related

Pull Info From 1 Worksheet Into Another - Not A One-to-one Relationship

Mar 5, 2009

I have one worksheet with 238 rows and another with 163 rows. I want to pull information into the sheet with 238 rows whenever there is a match to a record in the 163 rows. I tried VLookup, but as soon as it gets to a record in the 238 that doesn't exist in the 163 it gives errrors and stops. I've looked at =offset and =offset(match) but I'm not finding anything that deals with the situation of not always being a one-to-one (or even one-to many) relationship. Ultimately I want to pull the Category & Project fields into the records matching on IDNumb in Sheet 1 but Sheet 1 has more records than Sheet2. example......

View 5 Replies View Related

Need To Pull Out Specific Info From Mixed List

Apr 3, 2014

I pulled a report into excel that lists staff details and workgroups that they have access to. There are nearly 8000 staff who can have anywhere from 0 to 120 workgroups.

The workgroups are listed with the staff details in the following format:

SurnameForenamePost Title183860314040|188778743040|261226948048|584865373040|088365861041
SurnameForenamePost Title695416612049|751836367043|430463930049|461208099048|488798547045|723225723045|183860314040|472108996043
SurnameForenamePost Title177448555041|315136549047|400323457046

With the whole list appearing in one cell and not in numerical order.

I need to pull out a list for each workgroup, with all the staff who have access.

Even if there was a way I could separate out the workgroups and get them to line up.

View 2 Replies View Related

Using VBA To Open / Click In Or And Pull Info From Webpages?

Apr 2, 2014

how to have VBA go in and type words in a field and click 'go', 'search', 'submit'.Vice Versa, If I open a web page (without VBA), How do I make it so that once that web pages opens, VBA is triggered to pull info from a text box on that web page?

View 2 Replies View Related

Formula Required To Pull Some Info From Cell

Apr 15, 2008

i have a list of names which also contain e mails addresses after the names, they are displayed as (In column B onmy spreedsheet)

Armani Stevens/GB/companyname/GB@soso

what i need from the above is just the name (up tp the first backslash)

so i would need Armani Stevens and disregard the rest.

What i would then need to do is to take the name and then see if the names is in the list which is situated in column A,

so to sum

once i have Armani Stevens extracted from Coulmn B i would want to see if this name is in Column A

Names are obviously of all different lengths and there is always a space after the first name and surname

View 9 Replies View Related

Vba Select Rows Based On Info In A Column, Then Paste Into New Workbook

Jul 7, 2009

I'm using excel 2003. I would like to select and copy rows of data within a worksheet of a workbook and then paste those rows into a newly created excel workbook. That is the easy part. The complication is that I would like the macro to select the rows based on a particular string value that will be impossible to specify in a fixed way (i.e., it will change from project to project). Let's say the variable that distinguishes the rows is location, so some are from Tokyo, some New York, and some from Paris. Using vba, how can one 'splice' the data into (in this case, three) seperate workbooks based on the string/values of another variable?

I am familiar with auto-filter, but in this case, I really do need to create seperate workbooks, rather than apply calculations to a selection of the data.

View 9 Replies View Related

Hiding Columns Based On Other Column Data

Feb 27, 2008

I'm trying to hide columns based on information in another column. If that column contains "A" or "B", hide columns "U" through "W". If it contains "A", "B", "C", or "D", hide columns "V" through "W". Etc, etc., so on and so forth...

I've snipped the code I found earlier and modified it to (what I thought) was correct for my application, but it doesn't seem to do anything. (btw, should I get an error if it doesn't run correctly?)

Here is the code as modified:

Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Address = "P:P" Then

If LCase(Target.Value) = "A" Or LCase(Target.Value) = "B" Then

Columns("U:W").EntireColumn.Hidden = True

ElseIf LCase(Target.Value) = "A" Or LCase(Target.Value) = "B" Or LCase(Target.Value) = "C" Or LCase(Target.Value) = "D" Then

View 9 Replies View Related

Column Availability Based On Other Columns' Data

Jun 7, 2007

In the sheet I'm currently working on I have a column (column C) that uses a validation so that users can select from a number of call types (data tracking in a call center). I allowed for an "Other" option, with a free-form column (column D) dedicated to the "other" reason in case the list doesn't cover the type, but I'm running into a problem where people use the other column to describe call types already listed. Is there anyway to lock the Other column (column D) unless Other is selected in the drop down in the Call Type column (column C)? The sheet I'm working with contains confidential data so I can't post it, but if this isn't clear enough I can draw up a mock sheet.

View 5 Replies View Related

Formulas To Pull Data In Various Columns Within Row 2 Of Another Worksheet

Nov 10, 2011

I need some VBA code that puts in formulas to pull data in various columns within row 2 of another worksheet.

The formulas need to be entered below some other data, which is populated from another prior macro.

The below code works well but as the prior macro can populate a different number of rows on different days, the Row count then also changes and doesn't always refer to row 2 of 'HLDRT before' tab.

ActiveCell.FormulaR1C1 = _
"=IF('HLDRT before'!R[-22]C[-18] = ""A17"",RIGHT('HLDRT before'!R-20C[14],3)&'HLDRT before'!R-20C[9]&'HLDRT before'!R-20]C[-13],"""")"

Is there a way I can tell the above code to always use row 2 from the 'HLDRT before' sheet, while keeping the column number lookups the same?

I think there is a way to do it by removing the [] signs but I can't get it to work. I also then need the macro to copy these down so I'm not sure if using $ will cause problems?

View 4 Replies View Related

Changing Column Data Based On Another Columns Focus

Mar 4, 2014

I have 1 sheet called Setup which users enter their character name, their class, and their race, additionally the entire workbook manages data for up to 9 individual characters.

On another sheet called C|R|E, I have tasks listed that are based on each class type and each race type that are available. Currently there are nine classes and four races. Currently on this sheet each class and each race has its own individual data lists and such, and formulas are done in a way that user inputted data can be entered anywhere, but wont count unless the class and race match those selected on the Setup sheet. To keep the sheet short in appearance I used command buttons to hide/unhide classes or races not in use by the user.

What I was wondering is (and this could be hard to describe), can data in one column be changed to reflect data based on another column's focus? I will explain in more detail.

Column B contains the task information for each Class and Race. For example Cells B13-B51 for one class, Burglar. Columns D-L is where users enter data to show if the task is completed or not. In this example lets say the users first character listed on the Setup sheet is a Champion. What I want to do is check the Setup sheet Char 1. Then based on what Char 1 is selected as on the Setup Sheet, C|R|E B13-B51 data is changed to reflect it, IF Column D currently has focus. If Column E gets focus then B13-B51 changes based on the class selected on the setup sheet for character 2. and etc.

If this can be done I can remove the 13 different sections and have it down to 2 sections, one for class, one for race. For now I am using check boxes to hide classes and races they are not currently using, but would like to move all classes into one table and all races into one table to they dont have trouble with columns they have to skip over currently.

This is a sample of how I am currently working on the C|R|E sheet, the full code is much much longer since I am using so many command buttons.

View 1 Replies View Related

Pull Column Data (Sheet3) From Master.xls And Paste To Column 4, Sheet4 Of WorkingSS.xls

Feb 16, 2008

Pull Column Data (Sheet3) from Master.xls and past to Column 4, Sheet4 of WorkingSS.xls

I'm assuming this would be done with VBA or a really exotic macro.

The Funky Part would be that the WorkingSS.xls file column data is being copied/pasted too (WorkingSS1.xls or WorkingSS2.xls ect) the file may be different every time so I would need an insert in macro or VBA to "Choose File Please..." then continue.

The Master.xls workbook has spreadsheet lets say "Sheet1" in which I need all the data in Column A (except the header or cell A:1) copied TO WorkingSS1.xls on Sheet4, Column B, but Column B already has about 6000 rows of info, so I need it copied to the very end of (A:6001 although it will be different everytime) or the first empty cell at the bottom of that column.

next another Column from Master.xls workbook lets say "Sheet1" again in which I need all the data in lets say "Column B" copied to the WorkingSS1.xls on Sheet4, Column F. Caveat this time is that the data needs to copied to the same row as the first copy/past. So it would be pasted into F:6001. Double caveat is that the Column F contains no other data except for what we are about to paste in.

I have several more steps of automation to be done here but this is the beginning and a big hump I need to get past. The rest I think I can do.

View 9 Replies View Related

Conditional Format Cells In Jan - Dec Columns Based On Next Column Data?

Jan 29, 2014

Wondering if it is possible to conditional format cells in "Jan"-"Dec" columns based on "Next" column data?

What I need is (lets say fill colour to differ) in one cell per row, based on latest input and "next" data.

Month Avg
Date
Jan
Feb
Mar
Apr
May
Jun
Jul

[code]......

So for example:

row2: May is latest input so need fill in cell +2("next" column data) from may. In this case July

row3: Feb is latest imput and "next" also 2. Result should be Apr

row8:May is latest input, "next" is 6. Res should be Nov.

Finally, only one cell per row to be highlighted so need to overwrite colour fill when new data input in a cell already colour filled.

View 9 Replies View Related

Pull Found Records From Table Based On Single Column

Apr 16, 2008

I have the following data :-

SHEET 1
COL A_______COL B________COL C
V1990_______J100_________U1212
H2323_______Y999
U2222

SHEET 2
COL A_______COL B________COL C
U2222
I0000_______U8900________T67888
H2323

I need to search data from range defined A1.C3 and if any data in that range found in the sheet 2 that having the same records.

View 7 Replies View Related

Match Data From Another Column And Populate Info

Mar 21, 2007

I am trying to match info from one column with another column and if it matches, I need the formula to populate the relevant data from the adjacent column. I using Vlookup and I am not sure why it does not work. I have attached a simple example.

View 2 Replies View Related

Pull Cell Info From Workbooks In Server Directory And Paste Values In Master Sheet

Oct 3, 2012

I have been trying for months to get this to work by altering code from similar requests I've hunted down on google to no avail.

I am looking to have a "Master" sheet that is populated by data from 30+ individual excel workbooks. Each workbook is contained on a server in a directory "O:JobsJobs In Progress." In that directory are subfolders (named in sequence "C12000 Job1", "C12001 Job2", etc) which contain the actual workbook (Named according to number ie. "C12000 Jobinfo").

I would like this "Master" to automatically pull specific values from each C1200* workbook and paste them in a designated cell so that I can quickly look at specific information contained in each workbook. Each C1200* workbook is constructed the same way.

Short Example of C1200* workbook in which data will be pulled from:

Job Number
C12000
PM
Abe Lincoln
Foreman
Thomas Edison
Contract Date
1/1/10

View 1 Replies View Related

Pull Data From Sheet Based On Criteria - Populate UserForm And Ask For Missing Data

Feb 8, 2014

I have a spreadsheet that is updated weekly -- but every week new info is added that needs a user to input corresponding info. I use a vlookup function to link to another spreadsheet that populates the info from previous weeks and the info that is missing shows up as #N/A...

First I was using a msgbox function to get the info:

HTML Code: 

For Each b In myrange
If Application.IsNA(b.Value) Then
Employee = b.Offset(0, -2).Value
SSID = InputBox("Please enter ID# for " & Employee & " :", "New Employee Found")
b.Value = SSID
End If
Next b

But it can be up to 30 different new employees... and that is time consuming.

I would like to make it more user friendly by creating ONE userform that displays all of the employees as labels -- has a text box in which to put the ID # -- and then has a drop down box to choose the type of employee (2 options). I want all of that info to go back to the reference spreadsheet so it will be saved for following weeks, and then redo the vlookup to get the info into the new weekly spreadsheet (I can do that part)....

HTML Code: 

Private Sub CloseButton_Click()
Unload UserForm1
End Sub

Private Sub ComboBox1_Change()

[Code] ......

View 2 Replies View Related

Using If Function To Pull Data From One Cell Based On Data From Merged Cells

Jul 24, 2014

Looking for a formula to accomplish the following:

I'm trying to populate cell A31 on a worksheet titled "VolumeTotals" with the data in Cell E23 from a worksheet titled "CurrentCustomers" if the merged cells F3-F22 on worksheet "CurrentCustomers" are equal to the word "Contract".

View 6 Replies View Related

How To Move Data In Various Cells To New Columns Based On Search On Primary Column

Feb 4, 2014

I have a sheet which I need to arrange and it looks like -

Column A
Column B
Column C
Column D

[Code]...

the values in Column B, C , D , E & F need to be in new columns based on what we have in Column A associated with "1"

Output should be -
Column A
Column B
Column C

[Code]....

so whatever is in Column A associated with "0" should remain in place whereas whatever is in Colimn A associated with "1" should get added to the new columns. 0 and 1 resembles the 1 Records which are used as a split to normalize the data.

View 9 Replies View Related

Pull Data Based On Two Criteria?

Nov 14, 2012

i have a sheet that i have been creating to pull information based on two things. The criteria is an emplyee # and the second is a date.

The data needs to be organized onto Sheet4. The Employee # will already be on Sheet4, so i have been trying to use that with Vlookup / hlookup with no success as i can't seem to get it to find the correct Date and place the data correctly.

Sheet4 layout:
Completed (with respective data from Sheet2)

A
B
C
D
E

1

[code]....

the data is located in Sheet2 (Emplyoee # is always in Column A, and the Date is always in Column B).

the data needs to be pulled into Sheet4. Essentially making the horizontal data of Sheet2, Vertical on Sheet4 under the respective date column.

Sheet2 Layout:

A
B
C
D
E
F
G
H
I
J

[code].....

View 3 Replies View Related

Macro - Copy Data Based On Info In Cell From Separate Workbook

Jun 4, 2014

I have an invoicing spreadsheet, what I want is to have a main working page and then tabs after separated by vendor, but save myself a bunch of manual work in the future.

I want to be able to work in the main tab and the other tabs automatically update with the new info.

So I want the macro to search the text in the first column and if it finds "AIM Land Services Ltd." then I want it to populate the appropriate tab, in this case "AIM", with all the respective information after it ie: A-O. But I dont want it to select any other vendors/ info.

This is what I have:

Sub MoveData()
For Each cell In Range("A1:A1") ' Where to look for the date
If cell.Value = "AIM Land Services Ltd." Then ' The date
Range("A5:O350").Select ' What is the range to copy
Selection.Copy ' Copy it
Sheets("Invoice_Log").Select ' Select the Sheet it applies to
Range("A5").Select ' Where to paste the data

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

View 1 Replies View Related







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