Excel Queries to create a matrix?

MrStrawb

New Member
Joined
May 2, 2019
Messages
6
Good Afternoon All,

I'm trying to put together a spreadsheet matrix with a "item name" on the Y axis and "Gift Name" on the X axis. Each gift comprises a number of items within one gift.

Both axis information is held within 2 separate worksheets within a source file workbook.

I have used the query tool to bring the data into the matrix spreadsheet which works well for the Y axis however I'm having trouble with the X axis, I can transverse the data but its not working the way i had hoped.

Both data tables will change over time so i was hoping that the query would allow it to grow and expand as necessary.

The basic formula i will use to populate the matrix will be something like:

VLOOKUP(ItemName,SourceWorkbook'GiftName!,2,False) (Column 2 represents number of units within gift)

I'm hoping to be able to write a generic formula which looks at the specific Gift Name and searches within a worksheet of the same name. (The worksheets are currently in a pricing file - which is the start point of any new gift)

Before I spend too long looking into something that may not be possible it would be great to hear the approaches more experienced excel users would take to achieve this.

Any help will be gratefully appreciated.

Kind Regards

Adam
 

Some videos you may like

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Watch MrExcel Video

Forum statistics

Threads
1,101,957
Messages
5,483,893
Members
407,419
Latest member
Napoleao Paca

This Week's Hot Topics

  • Finding issue in If elseif else with For each Loop
    Finding issue in If elseif else with For each Loop I have tried this below code but i'm getting in Y column filled with W005. Colud you please...
  • MsgBox Error
    Hi Guys, I have the below error show up when i try and run my macro in File1 but works fine if i copy and paste the same code into file2. [ATTACH...
  • CELL FORMAT - IF CONDITION
    My Cell Format is [B]""0.00" Cr". [/B]But in the cell, it is showing 123.00 for editing. (123 is entry figure). (Data imported from other...
  • Show numbers nearly the same
    Is this possible. I have a number that can change very time eg 0.00001234 Then I have a lot of numbers 0.0000001, 0.0000002, 0.00000004...
  • Please i need your help to create formula
    I need a formula in cell B8 to do this >>if b1=1 then multiply ( cell b8) by 10% ,if b1=2 multiply by 20%,if=3 multiply by 30%. Thank you in...
  • Got error while adding column and filter
    Got error while adding column and filter In column Z has some like "Success" and "Error". I want to add column in AA if the Z cell value is...
Top