LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Tahlmorrah
 
Posts: n/a
Default Using Function to call Woorbook Sheet

I would like to use WEEKDAY() to call a particular Sheet in a Wookbook. The
Sheets are called Sunday - Saturday and I have an IF statement that needs to
check for particular information on that sheet depending on what day it is.
Have it currently functioning but it is taking up way to much space. I am
unable to update my code with other functions that I need it to calculate
until I can figure this part out.

Code:
=IF(OR(AND((TEXT(TODAY(),"dddd")="Monday"),(HLOOKU P(MOD(NOW(),1),Monday!$B$1:$BA$40,2))0),AND((TEXT (TODAY(),"dddd")="Tuesday"),(HLOOKUP(MOD(NOW(),1), Tuesday!$B$1:$BA$40,2))0),AND((TEXT(TODAY(),"dddd ")="Wednesday"),(HLOOKUP(MOD(NOW(),1),Wednesday!$B $1:$BA$40,2))0),AND((TEXT(TODAY(),"dddd")="Thursd ay"),(HLOOKUP(MOD(NOW(),1),Thursday!$B$1:$BA$40,2) )0),AND((TEXT(TODAY(),"dddd")="Friday"),(HLOOKUP( MOD(NOW(),1),Friday!$B$1:$BA$40,2))0),AND((TEXT(T ODAY(),"dddd")="Saturday"),(HLOOKUP(MOD(NOW(),1),S aturday!$B$1:$BA$40,2))0)),"y","")

As you can see it would be much easier if I could just do
=IF (HLOOKUP(MOD(NOW(),1),WEEKDAY()!$B$1:$BA$40,2))0)
but obviously that does not work.

Thank you in advance
 
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
Linking to an Entire Sheet Chaplain Doug Links and Linking in Excel 2 December 24th 04 07:39 AM
Hyperlink to specific sheet in Excel Web File jd17 Links and Linking in Excel 0 December 8th 04 09:03 PM
Can't save chart as object in current sheet Ann Scharpf Charts and Charting in Excel 1 December 3rd 04 11:24 PM
Solving for X and Y with a = in the FUNCTION??? TOMSQUAD Excel Discussion (Misc queries) 3 November 29th 04 08:00 PM
How to call a function from another workbook Joe Excel Discussion (Misc queries) 4 November 26th 04 03:49 PM


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