+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : Question about auto populating

  1. #1
    Registered User
    Join Date
    08-16-2011
    Location
    Pgh, PA
    MS-Off Ver
    Excel 2003
    Posts
    1

    Question about auto populating

    I am not sure how to explain my question. I have to enter in certain #'s that apply to each response that I was given. If I get 10 postive, 3 negative and 4 undecided, I have to enter them in like this.....

    Positive - 1,1,1,1,1,1,1,1,1,1
    Negative - -1,-1,-1
    Undecided - 0, 0, 0, 0
    (each comma is representing a different cell)

    Then this will total up on a side bar. I was wondering If there was a way for me just to type 10 into the side bar and then have the 1's auto display through the certain cells.

    Any help would be great, thank you.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,469

    Re: Question about auto populating

    If the nunber is in cell A1, put the following formula in cell B1 and drag across:

    =IF(COLUMN(B$1)-1<=$A$1,1,0)

    So, if A1 has a value of 10, you'd get 1 in cells B1 to K1 and zeroes after that.

    Alternatively, for spaces:

    =IF(COLUMN(B$1)-1<=$A$1,1,"")

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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