# Lookup Multiple Values In Same Column With Same Column Heading

Feb 10, 2010

Is there a formula to isolate observations in the same column (different values) and also all have the same column heading like the file attached?

## Convert Values / Content In One Particular Column To Individual Column Heading?

Jan 29, 2014

The yellow highlighted column F (each Reason) in the sheet2 to be placed as main header in the next column and so on as seen in the sheet 3

If they have two similar item number with 2 different reasons - delete the duplicate item number and place the number in each column according to its reason as seen on row 16 on the sheet3

If they have two number with similar reason - just sum up the number

sample excel 2.xlsx

## Lookup Row In Column & Heading In Row

Dec 7, 2006

I'm trying to enter info in a cell based on what is entered in two other cells.

So I have a dropdown box for the species on another sheet as well as a dropdown box for rail sizes. Then I have to crossreference them to come up with an upcharge number. Sorry for my basic lingo. I hope it's understandable.

## Lookup Value - Return Column Heading

Apr 14, 2010

I want to lookup the max value within a group of columns and return the column heading (specified a cell) that corresponds to the max value.

## Lookup Of Row (return Data From Specified Row) With Column Heading And Value

Feb 21, 2014

Encryption algorythim.xlsx

Here is my scenario I have all this data i want to search in. In the rows there are repeating values and in the columns they do not repeat.

As seen in the attached i am able to give a column and row by title and then get the intersecting cell data from that. (Encryption lookup)

What i want to do is give the column tittle and row value and get back the row title. (Decryption Lookup)

This shouldn't be too hard seeing that the data in the columns has no repeats.

Nov 18, 2008

I have a list of names and the chores they need to do on a certain day. I need a formula that returns the chore the person needs to do when the date is filled in.

Ex: Sheet2 Col:A has names filled in A2:11 , row B1:J1 has dates that you would input.
formula goes in B2:J11
Sheet1 is the master with all the data the formula would be pulling from.
column A2:A11 has the names , row B1:S1 has the chore that needs to be done.
B2:S11 has the dates already filled in.

## Multiple Lookup Values Rows And Columns To Lookup Single Target Column On Right End?

Apr 7, 2014

I have a table of data (say Column1 to Column 5) with multiple rows.

Column 1 to 4 will have the lookup values in multiple rows and Column 5 data should be picked up using vlookup or other lookup function.

I managed to somehow bring all these lookup values in (Column 1 to 4) in a single column in another sheet. I am now trying to use some lookup or other functions to match this single column and pick column 5 data in original sheet. Result i am expecting is lookup value in first column and next to it column 5 value.

It is basically a lookup wherein lookup value is spread over multiple rows and columns and result column is fixed. I tried using vlookup, but lookup value column and column number had to change every time when i moved from column1 to 4.

## Lookup/Match: Compare A1 For The Values In Column B, Then Return The Corresponding Cell (column C) In Column D

Jan 31, 2008

I've been searching the forums for this problem but I can't seem to find any answers. Anyway, this is the problem. See screenshot.

I want to compare A1 for the values in column B, then return the corresponding cell (column C) in column D.
e.g. D1 = 2, D2 = 1, D3 = 4, D4 = 5 and D5 = 3.

## Macro For Multiple Search And Replace Based On Column Heading (First Row)

Oct 7, 2013

I am looking for a macro to replace the values in a range of cells with a specific array for each column heading

Here is what I have

Temp1
Temp2
Temp3

0
0
0

1
1
50

[Code] ....

And here is the expected result of the macro

Temp1
Temp2
Temp3

no
false
min

[Code] ........

Please note there is only one Active Sheet.

## How To Obtain Similar Text Values From Data Range In Next Column Heading

Jan 8, 2013

I have attached the file, Problem.xlsx

How I will populate data of Weekday through the cells.

Is there a formula or function to populate data.

## Find Most Recent Date In Column Headings In A Range - Insert New Column And Heading

Apr 4, 2014

I have a 2 groups of column headings with a different month and year in each heading so

1st Group of columns range
Columns AJ through AX
Column Heading example "Expense Ratio February 2013......next Column over is "Expense Ratio March 2013"

2nd Group of columns range AY though CE
Column Heading example "Capital Balance February 2013......next Column over is "Capital Balance March 2013"

Each new month I need to add a new Expense Ratio column after the most recent expense ratio Column. (i.e. Find "Expense Ratio March 2013" and I need to add a column after that with heading "Expense Ratio April 2013"

Same thing for Capital Balance - add a new Capital Balance column after the most recent Capital Balance Column. (i.e. Find "Capital Balance March 2013" and I need to add a column after that for "Expense Ratio April 2013"

Because the ranges keep changing month over month, how do i do this.

## Transpose Rows Keeping Heading In Column A And Data In Column B

Mar 2, 2011

I have an excel spread sheet with several rows of 265 (9A-IV) columns each with a heading. I would like to transpose the worksheet columns so that the heading is placed in Column A against the corresponding that is placed in column B. For example

ABCD14692571038Transpose to A1A2A3B4B5C6C7C8D9D10

## Get Column Alphabet Based On Data It Contains Or Column Heading Using VBA?

Oct 28, 2011

How to get the Column Alphabet based on the Data it contains or the Column Heading using VBA?

Is it possible to get the Column Alphabet using any Macro or any function that within a Module it can always take the New Column Name during Execution..

Example: I have certain Columns where I have Yes and No Tick using the Wingdings P and Y..
Now these Columns are alternately Placed and there are six columns in all and they are spread over 12 Columns as the Alternate COlumns is reserved for Manual Entries.

Now I intend to increase the Manual Entry Columns but the problem is that every time I do that I need to make changes in my VBA Code.

Is it possible that even when the Columns are Inserted or Deleted in between before or after these columns I dont need to change the Explicit references by changing some approach.

I am not fuly conversant in VBA but use it whenever things are not completely feasible with Formulas AFTER GOOGLING.

Code:

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Not Intersect(Target, Range("X3:X13")) Is Nothing Then ' You can Change the range here
Cancel = True

[Code]....

As you can see the Ranges are Alternately Placed and there are about 6 such Columns with the above TICKS..

Now, how do I keep it FLoating so that even after changing the COlumn Location it does not need to get Updated i.e. X and Z Column Alphabets..

## Lookup Values And Insert Column And Rows?

Feb 18, 2014

I have a table (Arrears) showing a list of customers with part numbers and quantities in arrears. A second table is a customer order table showing details of what needs to be shipped for a given date.

Based on these two tables, I would like to add a column to the Order table to show the values for arrears against the order quantity for the given date. In addition if there are no order requirements but there are arrears then insert a row to show the corresponding arrears.

see the attached spreadsheet for more details. This shows the two source tables (Arrears and Order) and the expected results showing the added column for arrears and the inserted rows.

## Finding Column / Row Heading?

Dec 20, 2011

I have a 70x70 table where I teased out the largest 20 values. I'd like to utilize a formula to deliver the column headings (as well as the row) headings for each of these 20 values. VLookup and HLookup don't seem to work for me, and Index/Match seems to only work for single columns.

It might be worth mentioning that is highly unlikely that any of the values in the table are repeated.

## A Go To Column Heading Widget

Nov 1, 2007

I'm really tired of searching manually for the column containing a heading, as I have many columns. Isn't there a "simple" way to make a dropdown containing all the column headings in row 1, and upon selecting the heading of interest, have excel "go to" that column (maybe using a Find macro)?

## Insert Column At Specified Heading

Oct 23, 2007

I have a row of Headers A1 thru AO18. What I'm trying to do is have a small macro to go out and find "template" whichever column it may be in and insert a column to the left. I can make Excel insert the column to the left but obviously I can't have a fixed column designation because it will keep moving to the right of it and it won't work anylonger or I should say it doesn't put the column where I want it.

## Get Column Number Of A Heading

Nov 23, 2007

My problem is that the sequence of Colunms in my worksheet, with the similar data, keep changing. For example, an "Employee Name" may appear in column 3 or 5 etc.
For this reason, I want to select a cell within any column by its heading rather than "A", "B", "C" etc. For example, I want to select a cell as below:

Cells(5, "SN").Select

- which of course is not accepted by Excel

Similarly, I want to use Range with a column by its heading.

Or

I will like to know the Column number for the column with the heading "SN", for example.

## Lookup & Return Values Of Adjacent Column To Textbox

Mar 28, 2008

I have an excel sheet with cols of information e.g IDNo, FirstName,LastName etc. I have created a form in VB where you enter the IDNo (& Click on a command button called View) It should populate designated textboxes on the Form. Thus it should check the col where the IDNo is stored, find the IDNo and populate the adjacent cols i.e FirstName, LastName in designated textboxes on the form.

## Lookup Column Values In Another & Return Value If Match Found

May 28, 2008

I need to create a macro that will loop through a list of names on Sheet 1 / Column A, and if that name is listed on Sheet 2 / Column A, then it will set Sheet 1 Column B (for that one name) to "1".

The problem I've run in to is that both the lists change in length each time I have to run this (so no set range).

I've been able to get this to work with two ( nested) loops, where the first loop goes through the Sheet 1 list and the nested Loop looks for the name on Sheet2, but it is extremely slow.

Is there any simple VBA code or formula that I'm missing that could do this? I've tried to do something with the " Find" VBA command, but I can't see how it would apply to this if the list changes in size.

## Multiple Column Lookup Across Multiple Sheets

Apr 11, 2007

After going through multiple threads in the forums, I got this code to do a multiple VLOOKUP method.

=IF(E2+F2=0,"",INDEX(C2:C10,MATCH(1,(A2:A10=E2)*(B2:B10=F2),0)))

It works perfect on a sample sheet. But when im trying to implement it in a sheet with too much data, it always fails.

I have attached the sheet I am trying the formula on. I have grayed down the columns which needs formula's. The data is picked out from the second sheet.

This is how I have modified the formula to suit me..

=INDEX(Data!\$G\$2:\$G\$663,MATCH(1,(Data!\$A\$2:\$A\$663=\$C2)*(LEFT(TEXT(Data!\$E\$2:\$E\$663,"mm/dd/yy hh:mm:ss"),8)=\$I2),0))

<<Please note that all the dates and numbers in the sheet are in "text" format for ease of use>>

## Max Function That Returns A Column Heading

Mar 27, 2014

Let's say I have data that looks like this grid below. Each color represents a column heading and each number is a data point within that column.

Blue Red Green Yellow
18 27 15 36
56 41 3 22

Can I write a formula that would do the following 2 things with the data in this format:

1. Find the max of the data...simple =Max(...) formula
2. Use the max to return the column heading. In this case the max is 56 so the value I want to return is "Blue"

## Delete Empty Column With Heading VBA?

Nov 29, 2011

I am am wanting to delete the entire column if there are no entires below the heading in Row 1.

So in image below, Col C, E & G are to be delete including the heading.

Aug 3, 2006

I am building a small accounts package and need certain work books to open with no toolbars or row and colum headings showing.

## Getting The Date On Basis Of Column Heading

Sep 16, 2006

we use excell to mark our attedance in the formatt date in the column heading and name of the employee in the rows. what i want to do is create another sheet in which i want to track the start date and end of the leave for each employee.

## Return Heading Of Column With Maximum Value

Sep 16, 2007

In attached example, I have 3 columns of fractions with a final row of sumtotals (taken from elsewhere). I test to see which column has the maximum value in each row and allocate the result with the column's heading. Sometimes, two or more columns have the same max value. In this scenario, I wish to select the column heading that has the largest sumtotal.

## Return Column Number Of Heading

Jun 9, 2008

I have range like (3E:3K) in this range are only 2 different expressions. "Result and " forecast". I wanna look from left to right for the first cell with the string "forecast".
And than I want to work with the column of this cell, only this column.

How do i do that?

Edited
I corrected the coordinates. I want to look in a specific column line (Nr.3) from there the first Cell with "Forecast" and from that String the row number.

They following 4 posts were based on wrong informations by me.

## VBA - Lookup Value Found In A Column Within Another Range And Copy Adjacent Values

Jan 30, 2014

I'm trying to create a macro that can lookup values down a list, find that value within another list and copy the adjacent cells.

The values to look for will always be on the same column and the values to look into will always be in the same range or columns but not always in the same row.

For example.

AI:AI contains a list of ID's which will be manually input every day so they might have a different order.

C:AF has all the data to look into. C always being a list of ID values and I want for every ID found on AI:AI to be search for on C:C: and then once a match is found, I need specific adjancent cell values to be copied next to the ID found on AI.

The values that need to be returned are found on columns B,D,F,G,H,I,J,P,AF and they will always display on those columns.

I've been doing this based on vlookup and INDEX/MATCh formulas but I've come across some limitations for something I want to develop further so I'm trying to do this based on VBA.

## Lookup Column Values On Another Sheet & Return Adjacent Cells

Jun 11, 2008

Essentially, sheet b is a list of 900 people I need to mail to. Sheet a has 3000 rows of people, many of whom don't need the mailing. It has mailing addresses that we need in sheet b.

We have two worksheets, sheet a and sheet b

compare sheet b, column c (email addresses) to sheet a, column x, (email addresses).
If they match, move sheet a, columns d, e, f, g, and h to sheet b.

## Lookup Item That May Be In One Of Multiple Columns, Display From One Column

Jan 1, 2010

I would like to put a formula (or make a macro) for Cell F7 (and all the other cells too) in sheet "Budget Sheet" that pulls the value \$100 from cell G5 from sheet "Input Sheet" by looking through columns A-F for the account ID "5111100"

Obstacles:

- I (for the most part) cannot change the format of "Budget Sheet" or "Input Sheet"

- I cannot have the formula (or macro) just look down Column F because the actual file I am working with has the pertinent account IDs scattered through columns D-F (it was exported from another program).

Notes:
- I am using Excel 2003 SP3
- If necessary, I can make the reference to "5111100 · Bonus" if that would make things simpler

- Column G will always contain the dollar amount I need.

-I've been hitting the books trying to figure out how to get array formula working on this and cannot for the life of me get it to obey when I press ctrl-shift-enter.