+ Reply to Thread
Results 1 to 9 of 9

Auto list updating not updating

  1. #1
    Forum Contributor
    Join Date
    11-13-2010
    Location
    Warren, Michigan
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    307

    Auto list updating not updating

    I've attached a sample. The code works on other workbooks of mine. I started a new workbook and its not automatically update.

    You'll notice on my sample I marked in color the last two updates in Column A. You'll notice in Column C the last two entries weren't picked up.

    What did I do wrong, I've checked and can't figure it out - any help.
    Attached Files Attached Files
    Last edited by khank; 05-28-2011 at 11:03 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Auto list updating not updating

    Just copy the formula down two more cells.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    11-13-2010
    Location
    Warren, Michigan
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    307

    Re: Auto list updating not updating

    NO! The coding should automatically "PICK UP" only the last 20 rows.

    Every time a new entry is inputted in Column A Column C should up date itself with only the "last" 20.

    The coding I'm using works in other workbooks I have, but now it decides not to work and I don't know nor understand what is wrong.

    =IF(ROWS($C$1:$C1)>MATCH(REPT("Z",255),$A$3:$A$2902),"",INDEX($A$3:$A$2902,MATCH(REPT("Z",255),$A$3:$A$2902)-MIN(20,MATCH(REPT("Z",255),$A$3:$A$2902))+ROWS($C$1:$C1)))

    Both columns are "general" formatted.

    If you keep adding entries in column A nothing happens in column C - it just sits there "struck" on the original 20.
    Last edited by khank; 05-28-2011 at 09:09 AM.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Auto list updating not updating

    Ah, ok, that's much better information. So, your column C shows the last 20 entries in column A?

    Now I see the problem. Your long formula construct is designed to spot the last 20 "text strings" in column A, but the last few entries you put in column A are not text, they are real numbers. Notice the little green flags in that column? That's to warn you that your values are not the same "type", or are text that appear to be numbers but are not.

    So, the first thing to do is correct the column so that all values are the same type. I would personally convert all the values to true numbers and apply a custom number format of 000 to show the three-digit display as you have.

    Or, you can convert the new entries at the bottom to text by added an apostrophe to the start of the numbers, that would allow you to keep using your long formula construct.

    But we can accomplish the same thing with a much shorter formula. In the attached workbook you see the formula for true numeric values in C1, copied down. You also see the formula for all text values in G1 (looking at column E), and also copied down:

    =INDEX(A:A, MATCH(99^99,A:A, 1)-19+(ROW(A1)-1))

    Put this in C1 and copy down:
    Attached Files Attached Files
    Last edited by JBeaucaire; 05-28-2011 at 12:55 PM.

  5. #5
    Forum Contributor
    Join Date
    11-13-2010
    Location
    Warren, Michigan
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    307

    Re: Auto list updating not updating

    Thank you. I use your shorter "coding" and it works.

    Right now I'm investigating the corner green flag. I added a "000" to my custom format window and the column formatting "kicks" back to "number" format - still has the corner green flag on both A and C columns.

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Auto list updating not updating

    custom format does not change what's in cell, if cell was originally a real number say 12 then custom format 000 gives 012 but its still a real number not text "012"
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Forum Contributor
    Join Date
    11-13-2010
    Location
    Warren, Michigan
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    307

    Re: Auto list updating not updating

    Got it, thanks.

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Auto list updating not updating

    In the workbook I uploaded, I had already converted the "text" numbers in column A to real numbers using a Paste Special trick.

    1) Put the number 1 in an empty cell
    2) Copy the cell
    3) Highlight column A
    4) Select Edit > Paste Special > Multilply > OK
    5) All the text numbers are now real numbers
    6) Apply your custom number format of 000

  9. #9
    Forum Contributor
    Join Date
    11-13-2010
    Location
    Warren, Michigan
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    307

    Re: Auto list updating not updating

    Again thank you. You trick works - I just need to play with it some more, but it does work!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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