Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Brian
 
Posts: n/a
Default Confusing VLOOKUP with Indirect reference

Here is what I am trying to do:
I have about 50 sheets in a workbook, each for a different month. In column
A, I have an item id # listed all the way down(over 500). With each id #, i
have a current prep. date in column E, current ship date in column F, future
prep date in column H, and future ship date in column J. What I would like is
to have each of the cells with dates refer back to the previous month's page.
I have an indirect reference in C2(with the name of the sheet). Since the
period between some of the dates is more than a month, I am trying to set up
a statement saying find the id# on last month's page; if the future ship date
occurs in this month, take the date from the future ship date from last
month's page and place it in current date column for this month, otherwise
take the current date from last month's sheet for this months' page current
date.(Sorry so confusing, trying to be specifice)...please look at what I
ahve and see what my errors are. someone told me it can't be done without the
ISNA statement:

=IF(ISNA(VLOOKUP(A92,INDIRECT("'"&$C$2&"'!$b$2:$M$ 3639"),1,0)),"Not
found",IF(MONTH(TODAY())=MONTH(VLOOKUP(A92,INDIREC T("'"&$C$2&"'$B$2:$M$3639"),7,0)),
VLOOKUP(A92,INDIRECT("'"&$C$2&"'!$B$2:$M$3639"),7, 0)),VLOOKUP(A92,INDIRECT("'"&$C$2&"'!$B$2:$M$3639" ),4,0))

Thanks in advance!

  #2   Report Post  
DOR
 
Posts: n/a
Default Confusing VLOOKUP with Indirect reference

Brian,

It appears that you are trying to display all "open items" on one sheet,
possibly for progress reporting or expediting or whatever, so that you have
one place to look each month, and to enable this, you are carrying forward
each open item to the next month's sheet, possibly until it is shipped. I
have noticed many people do this and I recommend against it.

Have you considered using just one sheet, with just one instance of each
item, and using filtering and/or sorting to show the open items and limit
what you see to those that are "current", which seems to mean they have prep
or ship dates in the current month? This would be a lot simpler than trying
to carry forward information from one sheet to another. It would also make
any analysis you need to do that crosses multiple months an awful lot easier.
You could monitor up to about 65000 items this way, if you ever needed to,
(and more in future versions of Excel) without archiving or deleting shipped
items.

If my suggested approach is not feasible, I can work up an approach that
does what you want, even though I recommend otherwise.

Let me know what you think and we can proceed from there.

Declan

"Brian" wrote:

Here is what I am trying to do:
I have about 50 sheets in a workbook, each for a different month. In column
A, I have an item id # listed all the way down(over 500). With each id #, i
have a current prep. date in column E, current ship date in column F, future
prep date in column H, and future ship date in column J. What I would like is
to have each of the cells with dates refer back to the previous month's page.
I have an indirect reference in C2(with the name of the sheet). Since the
period between some of the dates is more than a month, I am trying to set up
a statement saying find the id# on last month's page; if the future ship date
occurs in this month, take the date from the future ship date from last
month's page and place it in current date column for this month, otherwise
take the current date from last month's sheet for this months' page current
date.(Sorry so confusing, trying to be specifice)...please look at what I
ahve and see what my errors are. someone told me it can't be done without the
ISNA statement:

=IF(ISNA(VLOOKUP(A92,INDIRECT("'"&$C$2&"'!$b$2:$M$ 3639"),1,0)),"Not
found",IF(MONTH(TODAY())=MONTH(VLOOKUP(A92,INDIREC T("'"&$C$2&"'$B$2:$M$3639"),7,0)),
VLOOKUP(A92,INDIRECT("'"&$C$2&"'!$B$2:$M$3639"),7, 0)),VLOOKUP(A92,INDIRECT("'"&$C$2&"'!$B$2:$M$3639" ),4,0))

Thanks in advance!

Reply
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
Indirect reference to another sheet that can be dragged Brian Excel Worksheet Functions 1 October 17th 05 09:05 PM
Using single cell reference as table array argument in Vlookup CornNiblet Excel Worksheet Functions 3 September 22nd 05 09:15 AM
Vlookup will not reference a validation/drop down box Dave Excel Discussion (Misc queries) 2 August 19th 05 09:52 PM
Using a cell reference of a sheet in Vlookup crazybass2 Excel Worksheet Functions 3 August 12th 05 07:51 PM
Convert VLOOKUP to absolute cell reference Rich Excel Discussion (Misc queries) 2 August 6th 05 03:49 AM


All times are GMT +1. The time now is 11:49 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"