+ Reply to Thread
Results 1 to 8 of 8

!!REPOSTED!! 1 JULY 2022 @ 9:54 Formula Is Not Filling Correctly

  1. #1
    Registered User
    Join Date
    08-11-2021
    Location
    Florida
    MS-Off Ver
    Excel 2019
    Posts
    75

    !!REPOSTED!! 1 JULY 2022 @ 9:54 Formula Is Not Filling Correctly

    Hello,

    I have the following formula in a table.
    =IF(B3<>"",CHOOSE(COUNTIF(B$2:B3,B3),"First Time","Second Time","Notify Supervisor!","Send To Investigations"),"")
    My issue is that as more data is entered, the cell reference in the new formula on the next row changes. Based on the above formula, you'll notice in order from left to right we have B3,B2,B3,B3. When I add data to the next row it should be B4,B2,B4,B4. adding another row will then give B5,B2,B5,B5 and so on. But in some random fashion it will suddenly change the third cell reference to the last row in the table. This throws off all previous entries. For example, instead of being first time, second time, notify, send to" it will change all four to "send to".

    I have attached a sample workbook so you all may see what I mean (compressed). To work the book, a number must be entered in the B column. The formula in question is in column D. When you enter the same number, it is meant to count how many times the number has been entered and return value based on the number of occurrences. I do believe it to be a auto-fill issue. Start by adding a "3" in B5 and notice how D4 suddenly changes when I dont want it to. NOTE: I have interative calculations enabled to get the timestamp to not recalculate as new data is entered; it is set to 1 and 0.001.

    UPDATE: by error checking and hitting restore, it changes the formula to be correct. hmm.....
    Attached Files Attached Files
    Last edited by DropAGearN'Disappear; 07-01-2022 at 09:54 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Formula Is Not Filling Correctly

    At the moment, I'm on a metered connection (expensive!!) on a campsite in France. So, I will not be downloading a monster sheet. However, on a more general basis... why do you think that setting iterations to 1 prevents changes to a datestamp? Can you PROVE that??
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    08-11-2021
    Location
    Florida
    MS-Off Ver
    Excel 2019
    Posts
    75

    Re: Formula Is Not Filling Correctly

    Its something I read on a forum somewhere, But no I cannot prove it. What is your knowledge of it as I haven't heard of the setting until a few days ago?

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Formula Is Not Filling Correctly

    I've used that formula for years... have never changed the default no. of iterations and have never had any problems. I was just interested to see if you knew if there were any issues.

  5. #5
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Formula Is Not Filling Correctly

    I think it's because your data is formatted as a table and the ranges changes automatically when you add a new line to capture the whole range.
    Either you remove the table formatting or try to copy first the formula when you want to open a new line and then fill in the rest of the parameters.

  6. #6
    Registered User
    Join Date
    08-11-2021
    Location
    Florida
    MS-Off Ver
    Excel 2019
    Posts
    75

    Re: Formula Is Not Filling Correctly

    Unfortunately, I cannot expect the end user to do the re-entering, and I need the ease of a table, any other Ideas?

  7. #7
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Formula Is Not Filling Correctly

    Go to table---> convert to range

    this will stop the auto-expand feature.

  8. #8
    Registered User
    Join Date
    08-11-2021
    Location
    Florida
    MS-Off Ver
    Excel 2019
    Posts
    75

    Re: Formula Is Not Filling Correctly

    It does indeed, but is there any way to keep the table?

+ 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. [SOLVED] Bar Chart not filling up correctly
    By BLD65 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-11-2022, 04:03 PM
  2. Application.EnableEvents not workng correctly code too long? not written correctly?
    By Carissaleigh2010 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-22-2019, 01:13 PM
  3. [SOLVED] Filling table with data, numbers don't come across correctly?
    By LIL2606 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-25-2019, 05:40 AM
  4. Formulas not filling down correctly in a table
    By elrik95 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-05-2019, 07:06 PM
  5. [SOLVED] How do I rearrange columns, pasting a formula and auto filling the formula
    By taylorsm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-05-2016, 05:25 PM
  6. Replies: 2
    Last Post: 01-06-2013, 05:50 AM
  7. User Form Label not filling correctly
    By duckboy1981 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-10-2008, 05:34 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