+ Reply to Thread
Results 1 to 5 of 5

Return column entries on formula based on user entry

  1. #1
    Registered User
    Join Date
    05-25-2013
    Location
    Toronto, Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    4

    Return column entries on formula based on user entry

    Hello all...

    First time poster. I'm not sure what/how to call this problem I'm having, so it's hard to search for a solution. Here's the problem I wish to solve:

    I would like to create column entries based on user-entered age that continues Age+1 until age=71 (includes and shows age 71, but stops and doesn't go beyond it).

    So if the user enters age 40, the following is returned:

    40
    41
    42
    43...
    71
    (Stop)

    what kind of formula would I use for this?
    Last edited by Smythers00; 05-25-2013 at 09:18 PM.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Return column entries on formula based on user entry

    Try this...

    A1 = some number like 40

    Enter this formula in A2:

    =IF(COUNT(A1),IF(A1+1>71,"",A1+1),"")

    Copy down until you get blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    05-25-2013
    Location
    Toronto, Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Return column entries on formula based on user entry

    Perfect! That's exactly what I was looking for.

    Thanks for your help.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Return column entries on formula based on user entry

    You're welcome. Thanks for the feedback!

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,897

    Re: Return column entries on formula based on user entry

    Here is an alternative VBA solution:
    Please Login or Register  to view this content.
    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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