+ Reply to Thread
Results 1 to 6 of 6

Trouble with excel changing column in formula!!

  1. #1
    Registered User
    Join Date
    10-29-2015
    Location
    England
    MS-Off Ver
    MS 2010
    Posts
    3

    Trouble with excel changing column in formula!!

    Hello,

    I am new here! It seems like a useful place to come.

    Ok so I have encountered a problem, I have created a table in excel and input data using the form button. I have a formula in one of my cells and is as follows:

    =IF(ISBLANK(S2),"",IF(NETWORKDAYS.INTL(MAX(D2:F2),S2-1,1)<1,1,(NETWORKDAYS.INTL(MAX(D2:F2),S2-1,1))))

    Now I have got the exact same formula in a separate sheet and it works fine, the 2 sheets are identical, in fact I just copied the first sheet. However when I enter a data into the second sheet excel does this:

    =IF(ISBLANK(S2),"",IF(NETWORKDAYS.INTL(MAX(D3:F4),S2-1,1)<1,1,(NETWORKDAYS.INTL(MAX(D3:F4),S2-1,1))))

    Where it should be MAX(D3:F3) in both instances. It also changes the original one to MAX(D2:F3) but it was fine before I entered more data in.

    Is there something horrifically wrong with my formula? Why does it work on the original sheet?

    Any help would be absolute fantastic. Btw I am running excel 2010.

    Thanks

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,414

    Re: Trouble with excel changing column in formula!!

    Hi,
    Difficult to answer without seeing your workbook but...
    1. Are the formulas entered in the same row?
    2. When you say you entered more data in, did you add rows above the formula?
    3. Is is really MAX(D2:F2) or rather MAX($D$2:F2) ?

    If possible, please attach a sample workbook...
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  3. #3
    Registered User
    Join Date
    10-29-2015
    Location
    England
    MS-Off Ver
    MS 2010
    Posts
    3

    Re: Trouble with excel changing column in formula!!

    Hello,

    Thanks for the reply!

    So basically what I have done is create a table and then I used the form button to add new entries to that table. So i put the formula in the first row which was created in the table, when I add data using the form it is supposed to copy the formula down however it is changing that one value. The form function adds new rows for me.

    Yeah I copied the formula out of the box and pasted it in.

    How do people share workbooks on here?

    Thanks

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Trouble with excel changing column in formula!!

    The forum rules tell you everything you need to know.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    10-29-2015
    Location
    England
    MS-Off Ver
    MS 2010
    Posts
    3

    Re: Trouble with excel changing column in formula!!

    Book1.xlsx

    Please excuse the headings I have had to change them and make a new workbook. In making a new sheet it seems the formula doesnt work on that either. The formula is in cell X2.

    Thank you for your help

  6. #6
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Trouble with excel changing column in formula!!

    I don't know why the formula apparently changes from the one you say you copied/pasted, but if you change the formula in X2 to use D2:F2 then all the subsequent rows will change as well (to D3:F3, D4:F4, etc) - i.e. you only need to change the first row.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

+ 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. Please! Changing X Axis Trouble
    By gdy3ar in forum Excel General
    Replies: 3
    Last Post: 05-13-2015, 04:19 PM
  2. Replies: 3
    Last Post: 11-27-2012, 06:01 AM
  3. [SOLVED] trouble w/ if formula finding values within a column
    By zazzz in forum Excel General
    Replies: 7
    Last Post: 11-13-2012, 05:01 PM
  4. Excel bar chart, column width trouble
    By pscseti in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 05-01-2012, 12:23 PM
  5. Trouble with excel changing data I input
    By WiccanFyir in forum Excel General
    Replies: 2
    Last Post: 05-22-2010, 01:27 AM
  6. Trouble with Excel Formula?
    By Beev in forum Excel General
    Replies: 4
    Last Post: 05-10-2007, 04:26 PM
  7. New to excel, having trouble changing values based on an input cell
    By MyUserName in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-18-2006, 10:20 PM

Tags for this Thread

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