PC Review


Reply
Thread Tools Rate Thread

Data Query using Match/Index

 
 
Bara Reyna
Guest
Posts: n/a
 
      15th Jan 2009
Every month my company outputs an excel file in the format (not that the
project number is only used once on a differnt row than everything else):

project Desc Amount
1.2.1
labor 10
material 5
other 15
1.2.X
labor 12
material 33
other 11

If, however, a project (using project 1.2.1 as an example) did not incur
material expenses then the report would look like:

project Desc Amount
1.2.1
labor 10
other 15
1.2.X
labor 12
material 33
other 11

I'd like to set up a query to find out the cost for a particular project and
a particular desc... for example, what were the labor costs for project
1.2.1. I can easily use match/index if the project number was on every row,
but since it is only on one row, I am stumped. Any help would be much
appreciated.


 
Reply With Quote
 
 
 
 
Max
Guest
Posts: n/a
 
      15th Jan 2009
> I can easily use match/index if the project number was on every row,
> but since it is only on one row, I am stumped.


It's easy to set it up to be completely filled in a helper col,
then just use the helper in the index/match

Assume the top project number is in A2
In D2: =A2
In D3: =IF(A3="",D2,A3)
Copy D3 down to the last row of data in cols B/C, to return the required
"filled" replica of col A
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,500 Files:370 Subscribers:66
xdemechanik
---
"Bara Reyna" wrote:
> Every month my company outputs an excel file in the format (not that the
> project number is only used once on a differnt row than everything else):
>
> project Desc Amount
> 1.2.1
> labor 10
> material 5
> other 15
> 1.2.X
> labor 12
> material 33
> other 11
>
> If, however, a project (using project 1.2.1 as an example) did not incur
> material expenses then the report would look like:
>
> project Desc Amount
> 1.2.1
> labor 10
> other 15
> 1.2.X
> labor 12
> material 33
> other 11
>
> I'd like to set up a query to find out the cost for a particular project and
> a particular desc... for example, what were the labor costs for project
> 1.2.1. I can easily use match/index if the project number was on every row,
> but since it is only on one row, I am stumped. Any help would be much
> appreciated.
>
>

 
Reply With Quote
 
ryguy7272
Guest
Posts: n/a
 
      15th Jan 2009
Sure this is an Excel group, but what you described would be perfect for an
Access query. Maybe you should look at this:
http://office.tizag.com/accessTutori...essqueries.php

HTH,
Ryan--

--
RyGuy


"Max" wrote:

> > I can easily use match/index if the project number was on every row,
> > but since it is only on one row, I am stumped.

>
> It's easy to set it up to be completely filled in a helper col,
> then just use the helper in the index/match
>
> Assume the top project number is in A2
> In D2: =A2
> In D3: =IF(A3="",D2,A3)
> Copy D3 down to the last row of data in cols B/C, to return the required
> "filled" replica of col A
> --
> Max
> Singapore
> http://savefile.com/projects/236895
> Downloads:22,500 Files:370 Subscribers:66
> xdemechanik
> ---
> "Bara Reyna" wrote:
> > Every month my company outputs an excel file in the format (not that the
> > project number is only used once on a differnt row than everything else):
> >
> > project Desc Amount
> > 1.2.1
> > labor 10
> > material 5
> > other 15
> > 1.2.X
> > labor 12
> > material 33
> > other 11
> >
> > If, however, a project (using project 1.2.1 as an example) did not incur
> > material expenses then the report would look like:
> >
> > project Desc Amount
> > 1.2.1
> > labor 10
> > other 15
> > 1.2.X
> > labor 12
> > material 33
> > other 11
> >
> > I'd like to set up a query to find out the cost for a particular project and
> > a particular desc... for example, what were the labor costs for project
> > 1.2.1. I can easily use match/index if the project number was on every row,
> > but since it is only on one row, I am stumped. Any help would be much
> > appreciated.
> >
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Index, match, multiple IFs query zx6roo Microsoft Excel Worksheet Functions 9 8th May 2010 08:46 AM
if, Isnumber, Match, &index query =?Utf-8?B?SnVscw==?= Microsoft Excel Misc 0 23rd Oct 2006 02:07 AM
index and match query =?Utf-8?B?a2F0ZQ==?= Microsoft Excel Worksheet Functions 1 7th Aug 2006 12:59 AM
INDEX AND MATCH QUERY ? =?Utf-8?B?a2F0ZQ==?= Microsoft Excel Worksheet Functions 2 17th Jul 2006 01:19 PM
index,match,match on un-sorted data Brisbane Rob Microsoft Excel Worksheet Functions 3 24th Sep 2005 10:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:18 AM.