Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Barry Clark
 
Posts: n/a
Default Combining references


OK, here is another one.

I would like to combine the sheet name and a cell value to equal a full
date. All in one cell.

I have the month and day part. That isn't a problem at all. For that, I
used a modified version of Franz's formula
Code:
--------------------
=DATEVALUE(RIGHT(CELL("filename",$A$1),LEN(CELL("f ilename",$A$1))-FIND("]",CELL("filename",$A$1))))
--------------------


This gives me whatever the sheet name is formatted as a date. However,
I would also like it to reference a cell for the year value.

Basically, I would like it reference G7 for the year portion of the
date. I have tried a few things but have not been successful in a
method. The last one I tried was to add
Code:
--------------------
&"/"&G7
--------------------
to the end of the code. Needless to say, it failed.

Thanks for all the help guys.


--
Barry Clark
------------------------------------------------------------------------
Barry Clark's Profile: http://www.excelforum.com/member.php...o&userid=35267
View this thread: http://www.excelforum.com/showthread...hreadid=555677

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Combining references

depends how the sheet name is formatted, but it can't be with / as that is
invalid. If it is say 26-06 or 26-Jun, then use

=DATEVALUE(RIGHT(CELL("filename",$A$1),LEN(CELL("f ilename",$A$1))-FIND("]",C
ELL("filename",$A$1)))&"-"&G7)

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Barry Clark"
wrote in message
...

OK, here is another one.

I would like to combine the sheet name and a cell value to equal a full
date. All in one cell.

I have the month and day part. That isn't a problem at all. For that, I
used a modified version of Franz's formula
Code:
--------------------

=DATEVALUE(RIGHT(CELL("filename",$A$1),LEN(CELL("f ilename",$A$1))-FIND("]",C
ELL("filename",$A$1))))
--------------------


This gives me whatever the sheet name is formatted as a date. However,
I would also like it to reference a cell for the year value.

Basically, I would like it reference G7 for the year portion of the
date. I have tried a few things but have not been successful in a
method. The last one I tried was to add
Code:
--------------------
&"/"&G7
--------------------
to the end of the code. Needless to say, it failed.

Thanks for all the help guys.


--
Barry Clark
------------------------------------------------------------------------
Barry Clark's Profile:

http://www.excelforum.com/member.php...o&userid=35267
View this thread: http://www.excelforum.com/showthread...hreadid=555677



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Marcelo
 
Posts: n/a
Default Combining references

Hi Barry,

if it return #value, is because you did not save the workbook, save it and
try again but, without datavalue so

=RIGHT(CELL("filename",$A$1),LEN(CELL("filename",$ A$1))-FIND("]",CELL("filename",$A$1)))&"/"&g7

HTH
Regards from Brazil
Marcelo



"Barry Clark" escreveu:


OK, here is another one.

I would like to combine the sheet name and a cell value to equal a full
date. All in one cell.

I have the month and day part. That isn't a problem at all. For that, I
used a modified version of Franz's formula
Code:
--------------------
=DATEVALUE(RIGHT(CELL("filename",$A$1),LEN(CELL("f ilename",$A$1))-FIND("]",CELL("filename",$A$1))))
--------------------


This gives me whatever the sheet name is formatted as a date. However,
I would also like it to reference a cell for the year value.

Basically, I would like it reference G7 for the year portion of the
date. I have tried a few things but have not been successful in a
method. The last one I tried was to add
Code:
--------------------
&"/"&G7
--------------------
to the end of the code. Needless to say, it failed.

Thanks for all the help guys.


--
Barry Clark
------------------------------------------------------------------------
Barry Clark's Profile: http://www.excelforum.com/member.php...o&userid=35267
View this thread: http://www.excelforum.com/showthread...hreadid=555677


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 insits that I use absolute cell references Espen Excel Discussion (Misc queries) 6 January 5th 17 05:47 AM
Combining IF, OR and 3d references duncan79 Excel Worksheet Functions 6 May 9th 06 05:05 PM
Changing cell references in formulas to names and back again. Aaron Excel Discussion (Misc queries) 4 April 25th 06 11:12 PM
Cell Reference's when Pasting RadiantQuartzHeater Excel Discussion (Misc queries) 0 February 16th 06 08:55 AM
Automatically Changing Cell Reference's when Pasting in Excel No I'm Spartacus Excel Discussion (Misc queries) 0 February 13th 06 01:01 PM


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

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"