+ Reply to Thread
Results 1 to 5 of 5

Populating the Cells below

  1. #1
    Registered User
    Join Date
    12-05-2008
    Location
    NYC
    Posts
    1

    Unhappy Populating the Cells below

    Hi Everyone, I hope someone can help me approach this situation...

    I have over 4000 rows of names and dollar amounts. I can't sort this by types of dollar amounts cause the names are only listed once... for example..

    Name Food Type Price
    Don Milk $1.99
    Vegies $5.99
    Meat $4.99
    Snacks $11.99
    Bob Milk $4.99
    Vegies $3.99
    Meat $15.99
    Snacks $1.99

    My question is how do I auto populate the cells below Don up until Bob and then populate the cells below Bob until the next person? Is there a formula? Macro? Something?

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Hi,

    One non macro way. Assuming your table above is in A1:C9, use a helper column D.

    In D2 enter
    Please Login or Register  to view this content.
    and copy down as far as necessary.
    Then copy the whole of column D and use PasteSpecial values to paste it back to column A.

    HTH

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    insert a column before names (new column A) assuming names start in now B2
    in a2 put =b2
    in a3 put
    =IF(ISTEXT(B3),B3,A2) and drag down
    once done copy paste back special values delete col b

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,079
    This solution assumes the following:
    Row 1 is a column header
    NO food types appear in the Name column
    most importantly, the person's name always appears on the "Milk" row...

    Insert a new column into column A
    A2 = IF(C2 = "Milk",B2,A1)
    Copy this down column A
    Copy column A, paste special values back into column A
    Delete column B

    Remember this will ONLY work if new names appear on the "Milk" row.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  5. #5
    Registered User
    Join Date
    08-17-2007
    Posts
    23
    This isn't really a formula...but it's my favorite little trick.

    Also, I'm not sure if this is what you're asking for but here it is.

    Assuming Don is in A2 and everything below that is blank until Bob in A6 and you want the cells A3 through A5 to say Don, this is what I would do.

    In A3 put the formula =A2

    Copy cell A3.

    Highlight the whole area where you are looking to populate the information.

    Press F5, this brings up a Go to box and click Special.
    When you're in here, choose Blanks and OK.

    Now you are left with only the blank cells as being highlighted.

    Paste what you have copied and now all the blank cells will equal whatever was directly above it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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