Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default Problem Using Excel datenumber as Text reference

Hi, struggling here with Excels datenumber...

I have as source the following table:

2006 2007
Jan 10 12
Feb 8 9
Mar 9 11
etc...


As a destination I have a report stating the following:

Jan-07 12
Jan-06 10

Whereby my report uses the Microsoftdatenumber as a reference
throughout, where Jan-07 is 39083 with the use of Format Cells Date
...

This value will change according to the month we live in :-)

Now the problem is: how can I use this datenumber to look up the
according value in the crosstable?
Normally I use INDEX() or VLOOKUP for this.
However, if I try to get "Jan" as a lookupvalue, e.g. through (LEFT();
3), this obviously does not return "Jan" but "390".
Is there I way to do this, pref. without adding an extra, intermediate
worksheet?

Important backgroundinfo:
My sourcefile is not made the way I would have it, but due to
"userfriendlyness" (i.e. the user-skill-level) I cannot change that.

Hope my question is at least understandable ^^

Thanx in advance for any help!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Problem Using Excel datenumber as Text reference

Try:

put in F2:

=INDEX($B$2:$C$4,MATCH(TEXT(MONTH(E2),"mmm"),$A$2: $A$4,0),MATCH(YEAR(E2),$B$1:$C$1,0)) and copy down

Where E2=Jan-07, E3=Jan-06 etc

If data and report are on different sheets, then qualify ranges with sheet
name e.g. Sheet!$B$2:$C$4 and chane E/F as required.

HTH

"artisdepartis" wrote:

Hi, struggling here with Excels datenumber...

I have as source the following table:

2006 2007
Jan 10 12
Feb 8 9
Mar 9 11
etc...


As a destination I have a report stating the following:

Jan-07 12
Jan-06 10

Whereby my report uses the Microsoftdatenumber as a reference
throughout, where Jan-07 is 39083 with the use of Format Cells Date
...

This value will change according to the month we live in :-)

Now the problem is: how can I use this datenumber to look up the
according value in the crosstable?
Normally I use INDEX() or VLOOKUP for this.
However, if I try to get "Jan" as a lookupvalue, e.g. through (LEFT();
3), this obviously does not return "Jan" but "390".
Is there I way to do this, pref. without adding an extra, intermediate
worksheet?

Important backgroundinfo:
My sourcefile is not made the way I would have it, but due to
"userfriendlyness" (i.e. the user-skill-level) I cannot change that.

Hope my question is at least understandable ^^

Thanx in advance for any help!


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default Problem Using Excel datenumber as Text reference

Toppers, works like a charm... Did not know this syntax combo of TEXT
and MONTH (mmm) at all... wish i had known before, would've saved me
some braincrack(er)s... ;-)

Grz, AdeP


On Feb 12, 1:08 pm, Toppers wrote:
Try:

put in F2:

=INDEX($B$2:$C$4,MATCH(TEXT(MONTH(E2),"mmm"),$A$2: $A$4,0),MATCH(YEAR(E2),$B*$1:$C$1,0)) and copy down

Where E2=Jan-07, E3=Jan-06 etc

If data and report are on different sheets, then qualify ranges with sheet
name e.g. Sheet!$B$2:$C$4 and chane E/F as required.

HTH



"artisdepartis" wrote:
Hi, struggling here with Excels datenumber...


I have as source the following table:


2006 2007
Jan 10 12
Feb 8 9
Mar 9 11
etc...


As a destination I have a report stating the following:


Jan-07 12
Jan-06 10


Whereby my report uses the Microsoftdatenumber as a reference
throughout, where Jan-07 is 39083 with the use of Format Cells Date
...

This value will change according to the month we live in :-)


Now the problem is: how can I use this datenumber to look up the
according value in the crosstable?
Normally I use INDEX() or VLOOKUP for this.
However, if I try to get "Jan" as a lookupvalue, e.g. through (LEFT();
3), this obviously does not return "Jan" but "390".
Is there I way to do this, pref. without adding an extra, intermediate
worksheet?


Important backgroundinfo:
My sourcefile is not made the way I would have it, but due to
"userfriendlyness" (i.e. the user-skill-level) I cannot change that.


Hope my question is at least understandable ^^


Thanx in advance for any help!- Hide quoted text -


- Show quoted text -



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
Excel Charts - Text Box Problem tpearo Charts and Charting in Excel 1 June 21st 06 04:14 PM
Started out as an Access problem. Now an Excel problem RobertM Excel Discussion (Misc queries) 2 April 26th 06 07:30 PM
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 03:06 AM
Problem organizing text data into new excel page Tony Excel Worksheet Functions 3 October 21st 05 08:19 PM
Slight problem automating Excel in a service someone Setting up and Configuration of Excel 2 May 13th 05 10:04 PM


All times are GMT +1. The time now is 05:38 AM.

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

About Us

"It's about Microsoft Excel"