Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / July 2007

Tip: Looking for answers? Try searching our database.

Do a two way lookup and get the result in multiple columns

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Anuj - 09 Jul 2007 16:57 GMT
Hi,

I have a worksheet with data on store sales:

StoreLoc        Date                  Sales$
A              10/28/2005             $100
A              11/04/2005             $150
B              10/28/2005             $200
B              11/04/2005             $250
B              11/11/2005             $300
B              11/18/2005             $350
C              11/04/2005             $300
C              11/11/2005             $350
C              11/18/2005             $400
D              11/11/2005             $400
etc.

I wanted to do a two-way lookup on StoreLoc and Date and get the sales
$ in a new worksheet in the following table format:

Store               10/28/05         11/04/05
11/11/05           11/18/05
A                       $100                 $150
B                       $200                 $250
$300                $350
C                                               $300
$350                $400
D
$400

I tried using index-match function, the formula in B2 was:
=index(STORELOC,match($A2,STORELOC,0),match(B$1,DATE,0))

but for some reason that only allows me to do a fill down in ColumnB
but doesn't work for a fill across. Please help.

Thanks,
Anuj.
Anuj - 09 Jul 2007 17:01 GMT
Ooops,

the result table didn't come out right... reposting
> Hi,
>
[quoted text clipped - 17 lines]
>
> Store               10/28/05         11/04/05   11/11/05           11/18/05
A                       $100                 $150
B                       $200                 $250          $300      
        $350
C                                               $300          $350    
          $400
D                                                                $400

> I tried using index-match function, the formula in B2 was:
> =index(STORELOC,match($A2,STORELOC,0),match(B$1,DATE,0))
[quoted text clipped - 4 lines]
> Thanks,
> Anuj.
T. Valko - 09 Jul 2007 19:38 GMT
See this screencap:

http://img412.imageshack.us/img412/5748/sumpvl4.jpg

Signature

Biff
Microsoft Excel MVP

> Hi,
>
[quoted text clipped - 34 lines]
> Thanks,
> Anuj.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.