LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Lookup only when data exists in table

You probably need a macro which will do all automatically. See the
Programming website for some samples.

"BabyMc" wrote:


I am trying to set up a formatted report, using Excel 2003, which
extracts data from a table in another workbook. However my request is to
find out whether there is a way to include lines on the report where
there is a matching entry in the table of data. The attachment and
following notes, I hope, might explain further.


The worksheet Group Data (which is going to be in the other workbook)
contains a table of information which is used to extract data within the
other sheets (e.g. in worksheet 306300 - the report).

For each instance of Sub code, against that cost centre in the Group
Data table, there needs to be a line included in the report (this is so
that the report balances back to the data.
The worksheet 306300 (which is a cost centre) currently contains around
a dozen 'Sub' codes (in column C), which are those required to extract
the information for the report. However, the issue is that the Group
Data table will expand each month with new Sub codes, and therefore
lines of data.

I would like to find a way of adding the relevant lines to the report
whenever that line is included in the Group Data table (and to exclude
the line if it is not in the Group Data table).

The only ways I can think of to do this is to either: -

1) Include a line, in the report, for every known Sub code possible (up
to 10,000) and hiding (possibly by means of filtering) those which have
no data. However I can't see that this can be practical as this is, say
10,000 lookups - multiplied by about 6 (columns with data on the
report), multiplied by the number of cost centres in the workbook (which
can be anything from 1 to 30). I have tried to use this method elsewhere
and calculation times are enormous.
2) Manually review each cost centre, in turn, each month. Where the
report does not balance, review the Group Data table for new Sub codes
not previously included, add a row in the report and include the new Sub
codes there.

Option 2, although time-consuming (there are currently around 200 - 300
cost centres across the organisation) seems the only method available.


Thanks, in advance, for any help.


+-------------------------------------------------------------------+
|Filename: MH Purchasing (for upload).xls |
|Download: http://www.thecodecage.com/forumz/attachment.php?attachmentid=158|
+-------------------------------------------------------------------+

--
BabyMc
------------------------------------------------------------------------
BabyMc's Profile: http://www.thecodecage.com/forumz/member.php?userid=268
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=104800


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to lookup if value exists in a range of data? S.elhalaby Excel Worksheet Functions 3 May 5th 23 07:43 PM
Lookup function when 'lookup_value' does not always exists Ken King Excel Discussion (Misc queries) 2 February 5th 09 07:41 PM
Lookup data in a variable table & retrieve data from a pivot table Shawna Excel Worksheet Functions 3 October 10th 08 11:11 PM
VLOOK up returning #N/A even though value exists in lookup array [email protected] Excel Worksheet Functions 1 September 4th 07 06:56 PM
Lookup value - see if exists in another array [email protected] Excel Worksheet Functions 1 March 1st 07 03:55 PM


All times are GMT +1. The time now is 12:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"