+ Reply to Thread
Results 1 to 3 of 3

Check if final week of fiscal period

  1. #1
    Registered User
    Join Date
    03-23-2008
    Posts
    8

    Check if final week of fiscal period

    Hello. I am attempting to check to see if the current week is the end of a period or not. If it is, I need to display some text, and if it is not, I need to display nothing.

    Since I am Computer Science major, the best way I can describe this is through and if structure from a low-level programming lanuage (like C++ or Java):

    Please Login or Register  to view this content.
    Basically, the period and week numbers are already given on the worksheet in C1 and E1 respectively.
    If the period number (C1) is 3, 6, 9, or 12 AND the week number (E1) is 5, then I need to display the text. However, if the period number (C1) is 1, 2, 4, 5, 7, 8, 10, 11 AND the week number is 4, then I need to display the text. If the above statements are not true, then no text should be displayed.

    I have messed around with the IF function using AND and OR functions, however, I can just not get this to work.

    If I was more comfortable implementing VB into worksheets I'd probably take this route, however, I am kind of unfamiliar with VB.

    I hope my explanation of my problem was sufficient for someone to understand and any help is greatly appreciated!

    Dan
    Last edited by dvlchd3; 10-08-2008 at 07:50 PM. Reason: Forgot to enclose code in code tags

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Try

    =IF(E1=4+(MOD(C1,3)=0),"Last week","")

  3. #3
    Registered User
    Join Date
    03-23-2008
    Posts
    8
    Thank you for your quick reply! I am not sure how that function works, but it works like a charm! Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. autocalculate current week of fiscal year?
    By zb61 in forum Excel General
    Replies: 6
    Last Post: 06-14-2012, 02:29 AM
  2. Formula to calculate Period & Week into Date?
    By AstroPenguin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-17-2008, 08:12 PM
  3. Check day of the week
    By s2mike in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-25-2008, 11:25 PM
  4. VBA; find string and copy
    By Bill Rudd in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 03-06-2008, 10:41 PM
  5. Statistical Anomalies
    By Gurblash in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-21-2007, 04:56 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1