+ Reply to Thread
Results 1 to 2 of 2

Networkdays calculation VBA Excel

  1. #1
    Registered User
    Join Date
    11-04-2014
    Location
    HATFIELD
    MS-Off Ver
    7
    Posts
    5

    Networkdays calculation VBA Excel

    Hi Everyone. I have written the below code which checks if L001 is in D2 and if it is puts a 0.5 in the cell next to it, if its L002 it should put the number of networkdays calculated from cells B2:C2.
    It works fine when I do it for the first time.
    Any time after that it doesnt work. Im guessing its because I have stated B2:C2 as the look up cells for network days and its not always going to be these it will follow on and be B3:C3, B4:C4 and so on

    Can anyone help me, I have been trying to fix this for 3 days

    Please Login or Register  to view this content.
    Last edited by hermones; 03-30-2015 at 10:59 AM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Networkdays calculation VBA Excel

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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. Date Calculation using NETWORKDAYS
    By Moondog in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 02-06-2015, 12:33 PM
  2. Date and time calculation - networkdays, vacation, holidays
    By N8237 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-21-2013, 10:47 AM
  3. [SOLVED] EXCEL NETWORKDAYS FUNCTION
    By TLAngelo in forum Excel General
    Replies: 2
    Last Post: 07-25-2006, 07:15 PM
  4. [SOLVED] Help with Networkdays Calculation
    By Scoooter in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-20-2006, 09:30 AM
  5. NETWORKDAYS Calculation Problem
    By stacy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-29-2006, 11:25 AM

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