index match, lookup formula

Silo

Active Member
Joined
Mar 8, 2004
Messages
447
Hello everyone

I’m struggling with a index match, lookup formula, here’s what I ‘m trying to do

I have a table range $F$5:$EO$36

Column F6:F36 represents dates
From G5:EO5 is the header row with location names
Range G6:EO36 are sum totals

In Cell AI1 I’m trying to right a lookup formula that will match the date reference in $A$3 to the matching date in range $F$5:$EO$36 with the location name in $B$1 that matches G5:EO5 and provide the sum totals G6:EO36

Any help will be greatly appreciated

Thanks everyone :)
 

Some videos you may like

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
1st, I must say this is a STELLAR explaination of your poroblem. Kudos.
I wish everyone would explain their problem as well as you just did.


Anyway, this should do it.

=INDEX(F5:EO36,MATCH(A3,F5:F36,0),MATCH(B1,G5:EO5,0))

Hope that helps..
 

_PhilW_

Board Regular
Joined
Nov 13, 2008
Messages
143
The following should work...

=vlookup(A1,F5:EO36,match(B1,F5:EO5,0),false)
 

Silo

Active Member
Joined
Mar 8, 2004
Messages
447

ADVERTISEMENT

Hello everyone

I had originally posted this tread and received assistance that met my purpose... However I had to modify my pivot table to be a bit more specific. I am struggling with editing the formula that was provided.

I have a Pivot Table range $E$4:$S(Depending on how much data range will keep going)

E4:S4 is the header row with Date in Column E, Product Description in Column F & location names Columns G:S

So Column E has dates with Date Sum for each day (example: 8/1/2010 Total)
Range G5:S(Depending on how much data range will keep going) are sum totals

In Cell AI1 I’m trying to get the totals by location in names of location are in Range G4:S4 that match the location referenced in B1.

G5:S(how ever far it go’s) has the totals I want

I need to get the totals by date referenced in $A$3, but the pivot table refers to the totals Date and Total example “8/1/2010 Total”

I’m trying to incorporate this formula to search for date total “=TEXT($A$3,"m/d/yyyy"" Total""")”

Any suggestion?

Thanks
 

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
Try

=TEXT($A$3,"m/d/yyyy Total")

But I have a question...

It might be better to have your formula reference the SOURCE data, instead of the pivot table..
 

_PhilW_

Board Regular
Joined
Nov 13, 2008
Messages
143

ADVERTISEMENT

^ Or...

=TEXT($A$3,"m/d/yyyy")&" Total"
 

Silo

Active Member
Joined
Mar 8, 2004
Messages
447
This is the formula I trying to correct

these are the variations but still no success

=VLOOKUP(TEXT($A$3,"m/d/yyyy"" Total"""),'DAPC Pivot'!$E$5:$E$300,MATCH($B$1,'DAPC Pivot'!G5:$R$300,0),0)

=TEXT($A$3,"m/d/yyyy")&" Total",'DAPC Pivot'!$E$5:$E$300,MATCH($B$1,'DAPC Pivot'!G5:$R$300,0),0)
 

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
Post the formula that had working PRIOR to changing your pivot table..

But from the looks of what you just posted, try

=VLOOKUP(TEXT($A$3,"m/d/yyyy Total"),'DAPC Pivot'!$E$5:$P$300,MATCH($B$1,'DAPC Pivot'!G5:$R$300,0),0)
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,730
Messages
5,513,060
Members
408,935
Latest member
Jmtramos

This Week's Hot Topics

  • Sort code advice please
    Hi, I have the code below which im trying to edit but getting a little stuck. This was the original code which worked fine,columns A-F would sort...
  • SUMPRODUCT with nested If statement
    Hi everyone, Hope you're all well. I'm hoping someone will be able to point me in the right direction with a problem I'm having with a SUMPRODUCT...
  • VBA - simple sort is killing me!
    Hello all! This should be so easy, but not for me, apparently! I have a table of data that can be of varying lengths and widths. My current macro...
  • Compare Two Lists
    I have two Lists and I need to be able to Identify differences between them. List 100 comes from a workbook - the other is downloaded form the...
  • Formula that deducts points for each code I input.
    I am trying to create a formula that will have each student in my class start at 100 points and then for each code that I enter (PP for Poor...
  • Conditional formatting formula required for day of week and a value
    Hi, I have a really simple spreadsheet where column A is the date, column B is the activity total shown as a number and column C states the day of...
Top