double lookup matching

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Double lookup/ matching?

Double lookup/ matching?

resolvedResolved · Urgent Priority · Version 2003

Mark has attended:
Access Intermediate course

Double lookup/ matching?

Hi,
I have a table in one worksheet with 3 columns and 40ish rows all with data in. Then on a seperate sheet I have a table, I'm trying to get the table to produce a number in each cell by matching the column heading and the row heading, and pulling the number from the other sheet's data.

Do you understand? It's kind of difficult to explain without being able to show you the sheet.

Regards,

Mark

RE: Double lookup/ matching?

Hello Mark
Thank you for your question

You have two sets of data with the same or similar information on both only one table has an additional colum. You want to check to see if the values on the second set of data are in the first set of data and if they are, show the additional column data for that row. Is that correct? If it is then you can use Vlookup. I have attached an example. I have named the data on the first sheet as Range2.

Hope this helps, but if I have the wrong end of the stick could you please write back with an example of what you are trying to do? - thanks.


If this resolves your question, please mark it as resolved. If not, please reply with more information.

Kind regards
Cress

Attached files...

Vlookup.xls

RE: Double lookup/ matching?

Sorry I'm afraid this wasn't what I was after.

Here goes:

So my first table looks like this:

Col A heading = UIP, Col B Heading = LDZ, Col C heading = Quotes.

Then under the heading 'UIP' there are names such as British Gas, Eon, UU, etc.
Under the heading 'LDZ' there are entries such as EA, EM, WN, SC, etc.
Under the heading 'Quotes' there are simply number entries.

British Gas may appear several times in the table, as will Eon etc, but the combination 'British Gas' then 'EA' will only appear once. As this will be all the quotes for British gas in the EA area.
If there are no quotes though it will not have a 0 row, it just simply won't be in this table.

Now table 2 (I one I'm trying to produce) will look like this.

Cell A2 = British Gas
A3 = Eon
A4 = Edf
Etc

Cell B1 = EA
C1 = EM
D1 = SC
etc

Now in the middle of that table I need a formula to pull the correct numbers through from table 1. And if it can't find a match i.e. British gas & EA on the same row then it will either show zero or 'N/A', '#REF!'.

Hopefully I've explained it better than my lazy explanation y'day.

Thanks for your help,

Mark

P.s. I couldn't work out if I was able to attach a worksheet to send to you.

RE: Double lookup/ matching?

Hello Mark
Thanks for the detailed explanation, I think i have the idea now of what you need. I dont think you can do this with a formula, instead I think you need to use a Pivot table. I have attached a spreadsheet. The first two tabs are me attempting to recreate what tables you have and want. The third sheet shows a pivot table which I think is what you are after. I realise it can be tricky to explain in this way, but we'll get there! This is basically allowing you to sum the quotes for each company for the area.

You achieve this by using the Pivot table and chart wizard under the data menu. The UIP column goes in the left box, the LDZ column along the top and the Quotes column goes in the data area. Is this what you meant or not quite?

By the way, once you have added your reply you should be able to see it and see a little link called 'Upload' where you can upload files to your post so that I can see them.


If this resolves your question, please mark it as resolved. If not, please reply with more information.

Kind regards
Cress

Attached files...

Pivot table solution.xls

RE: Double lookup/ matching?

Perfect! Thanks very much, didn't even think about doing a Pivot table since I hardly ever use them.

Cheers for the help,

Mark


 

Excel tip:

Viewing Many Worksheets

If there are more worksheets in your workbook than there is room to show all their tabs at the bottom of the screen - Right click on the navigation arrows. A list of all your worksheets is shown. You just click on the one that you want to access. If you have more than 15 worksheets, select in the list and choose your worksheet from hundreds.

View all Excel hints and tips


Server loaded in 0.07 secs.