+ Reply to Thread
Results 1 to 22 of 22

Table length by input

  1. #1
    Registered User
    Join Date
    07-12-2018
    Location
    Durham, NC
    MS-Off Ver
    Office 365
    Posts
    29

    Table length by input

    Trying to have input determine length of the sheet. Ex: Someone is 40 years old currently and wishes to retire at age 70, result is excel uses input to create the sheet with 30 rows to match the 30yrs, and if someone is 35 and wishes to retire at 75 the table would have 40 rows. Would not think it is overly difficult, but definitely beyond my knowledge. Hopefully someone can "school" me. Thanks

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Table length by input

    Hi, welcome to the forum

    Doing that should not really be a problem, but what do you ant shown for those years, and what does the rest of your sheet look like?
    Can you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    07-12-2018
    Location
    Durham, NC
    MS-Off Ver
    Office 365
    Posts
    29

    Re: Table length by input

    Thanks Ford,
    I know this is not what you are asking, but either a little bleary eyed and new to forum, as well as rusty on excel. At any rate did not see the upload feature, and feeling incredibly addled at the moment.
    Below is a bit disjointed, but the idea is instead of it being a static 30 yr, the table would adjust to the input of age and desire retirement age. The formulas across are constant with some pulling of data from a simple input form.
    Please don't laugh too much at my asking questions when unable to simply upload the sheet, will do happily once I have a rectal crainiotomy performed.

    Greg


    Invested Total with Match Gain Taxed Annually
    The CONTRIBUTION & ACCUMULATION PHASE Calculations
    Year Age Value Investment Emp Match Growth Fees Year Est. Acct Value Total Fees
    0 40 $500,000 $500,000 60% 0
    1 41 $12,000 $7,200 1
    2 42 $12,000 $7,200 2
    3 43 $12,000 $7,200 3
    4 44 $12,000 $7,200 4
    5 45 $12,000 $7,200 5
    6 46 $12,000 $7,200 6
    7 47 $12,000 $7,200 7
    8 48 $12,000 $7,200 8
    9 49 $12,000 $7,200 9
    10 50 $12,000 $7,200 10
    11 51 $12,000 $7,200 11
    12 52 $12,000 $7,200 12
    13 53 $12,000 $7,200 13
    14 54 $12,000 $7,200 14
    15 55 $12,000 $7,200 15
    16 56 $12,000 $7,200 16
    17 57 $12,000 $7,200 17
    18 58 $12,000 $7,200 18
    19 59 $12,000 $7,200 19
    20 60 $12,000 $7,200 20
    21 61 $12,000 $7,200 21
    22 62 $12,000 $7,200 22
    23 63 $12,000 $7,200 23
    24 64 $12,000 $7,200 24
    25 65 $12,000 $7,200 25
    26 66 $12,000 $7,200 26
    27 67 $12,000 $7,200 27
    28 68 $12,000 $7,200 28
    29 69 $12,000 $7,200 29
    30 70 $12,000 $7,200 30

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Table length by input

    I will see what I can do with your sample.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Table length by input

    OK, I cant make out (without guessing) where 1 heading ends and the next starts?

  6. #6
    Registered User
    Join Date
    07-12-2018
    Location
    Durham, NC
    MS-Off Ver
    Office 365
    Posts
    29

    Re: Table length by input

    Seemed to attach, after uploading closed manage attachments window and reopened and it was there. But again GIGO.
    Attached Files Attached Files

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Table length by input

    Thanks for the file

    So, where would you put the age, and where - and what - would you want the output to be?

  8. #8
    Registered User
    Join Date
    07-12-2018
    Location
    Durham, NC
    MS-Off Ver
    Office 365
    Posts
    29

    Re: Table length by input

    I have an input form. I copied just this page as the entire spreadsheet is 8-10 sheets at this time. If you look at C4 it indicates the source sheet I am pulling from for that cell. I manually made this sheet 30 rows deep but wish to automate so the length varies. Attached the input form and the actual client is 49 so hoped I could automate the Accumulation sheet to shorten to 21yrs, in this case, or as needed shorten or lengthen.

  9. #9
    Registered User
    Join Date
    07-12-2018
    Location
    Durham, NC
    MS-Off Ver
    Office 365
    Posts
    29

    Re: Table length by input

    Well, did not successfully attach input will try again.
    Attached Files Attached Files

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Table length by input

    OK so you have 2 files, 1 with the data tables, and another 1 to show the extract?
    (why not use a 2nd sheet, instead of a 2nd file - not that it really matters, just makes formulas a bit simpler)

  11. #11
    Registered User
    Join Date
    07-12-2018
    Location
    Durham, NC
    MS-Off Ver
    Office 365
    Posts
    29

    Re: Table length by input

    On the complete spreadsheet it is all 1 file, separated as not to confuse the issue.

  12. #12
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Table length by input

    Ok can you upload a sample of the actual file, please?
    (its getting late here, I will probably need to carry on in the morning )

  13. #13
    Registered User
    Join Date
    07-12-2018
    Location
    Durham, NC
    MS-Off Ver
    Office 365
    Posts
    29

    Re: Table length by input

    Not sure how that helps answer the question. Assume the entire file is the two I have uploaded. Do you know how to solve the problem? Sleep well.

  14. #14
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Table length by input

    See if this works for you, assuming Input is in the same file as Accum
    No changes to Input
    Accum sheet...
    A5=IF(B5="","",A4+1)
    B5=IFERROR(IF(B4+1>'Input form'!$B$19,"",B4+1),"")
    C5=nothing
    D5=IF(B5="","",'C:\Users\Owner\Desktop\VirtualInsPart\[Calculator sheet A.xlsx]Calculator Accum & Dist'!$B$5*12)
    E5=IF(B5="","",D5*$E$4)
    H5=IF(B5="","",H4+1)

    all copied down as needed, say, row 40

  15. #15
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,604

    Re: Table length by input

    Copy down to row 65 or so...

    A6:
    Please Login or Register  to view this content.
    B6:
    Please Login or Register  to view this content.
    cell names:
    CurrentAge =Sheet1!$B$1
    RetirementAge =Sheet1!$D$1

    try changing the values in b1 and d1...
    Attached Files Attached Files
    Last edited by protonLeah; 07-13-2018 at 11:27 PM.
    Ben Van Johnson

  16. #16
    Registered User
    Join Date
    07-12-2018
    Location
    Durham, NC
    MS-Off Ver
    Office 365
    Posts
    29

    Re: Table length by input

    That is exactly the result desired. Please excuse my extreme ignorance. How do I then have the remaining cells follow suit. Ultimately hoping to have totals for the columns at bottom, if possible. I have attached the whole workbook. I started to think having a second page with only the Accumulation and then a function to copy the appropriate portion to first page. But again an idea from an excel ignoramus.
    Attached Files Attached Files

  17. #17
    Registered User
    Join Date
    07-12-2018
    Location
    Durham, NC
    MS-Off Ver
    Office 365
    Posts
    29

    Re: Table length by input

    On Input & Results B4-E25 is input section used to populate the mirror Accumulation table. Cont. & Accum Calc is where I thought possibly using the "years to retirement" to determine amount of table to copy to Input & Results at B34. But seems addled as would think this is something within Excel capabilities, just to clueless to know.

  18. #18
    Registered User
    Join Date
    07-12-2018
    Location
    Durham, NC
    MS-Off Ver
    Office 365
    Posts
    29

    Re: Table length by input

    I owe you an apology for not thanking you for your attempt to assist. Was going a bit guano meshuggah and bleary eyed.

  19. #19
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,637

    Re: Table length by input

    You have opened a thread in commercial services asking the same question. You cannot have both. Do you wish to keep this one open or switch to commercial services?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  20. #20
    Registered User
    Join Date
    07-12-2018
    Location
    Durham, NC
    MS-Off Ver
    Office 365
    Posts
    29

    Re: Table length by input

    Please close this thread as I wish to switch to commercial services.
    Thank you

  21. #21
    Registered User
    Join Date
    07-12-2018
    Location
    Durham, NC
    MS-Off Ver
    Office 365
    Posts
    29

    Re: Table length by input

    Ford,
    Moved this to commercial and saw you there. Coming to the understanding of how far out of my depth I am. Thanks for your assistance. Have I believe an easier way to approach, if able to help would like to work with you. New to this so don't know what the going rate in points is. Thanks again for all your help.
    Greg

  22. #22
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Table length by input

    Happy to help, thanks for the feedback

+ 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. Create Varying Table Length Detremined by User Input
    By kaseech in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-04-2017, 07:30 AM
  2. Length of User Input
    By sperry2565 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-10-2013, 05:19 PM
  3. [SOLVED] Code not working on a input box if inputted character length is 5
    By jshaw82 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-09-2013, 12:16 PM
  4. [SOLVED] Take date from string and input into varying column length
    By bruizer31 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-26-2013, 10:55 AM
  5. Need to adjust the length of data for accepted by input vba
    By kjsconv in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-31-2013, 01:05 PM
  6. Possible to link Table length to Pivot table length?
    By saber0091 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-04-2013, 05:36 PM
  7. user input diameter and length to part number
    By razali in forum Excel General
    Replies: 1
    Last Post: 12-14-2005, 03:20 PM

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