+ Reply to Thread
Results 1 to 6 of 6

Formula to add rows based on required capacity

Hybrid View

sbweeks Formula to add rows based on... 02-20-2018, 01:08 PM
AliGW Re: Formula to add rows based... 02-20-2018, 01:09 PM
sbweeks Re: Formula to add rows based... 02-22-2018, 07:36 AM
JeteMc Re: Formula to add rows based... 02-26-2018, 08:39 PM
sbweeks Re: Formula to add rows based... 02-27-2018, 05:39 AM
JeteMc Re: Formula to add rows based... 02-27-2018, 10:20 AM
  1. #1
    Registered User
    Join Date
    02-20-2018
    Location
    England
    MS-Off Ver
    Excel 2017
    Posts
    3

    Formula to add rows based on required capacity

    Hi All,

    First post to get the ball rolling;

    How can I get a tab, to add rows based on a variable at the top of the sheet?

    For example, I have a data rack that can be either 20, 10 or 5 rows, depending on the size of the cabinet, and I want to be able to use a drop do to select the size (20/10/5) and then have it make a list of 1-20/10/5 as required, that I can then fill in which each row is for.

    Hopefully, that makes some sense!

    Thanks

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,404

    Re: Formula to add rows based on required capacity

    Welcome to the forum!

    Will you please attach a sample Excel workbook?

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    02-20-2018
    Location
    England
    MS-Off Ver
    Excel 2017
    Posts
    3

    Re: Formula to add rows based on required capacity

    Hi Ali, thanks for the information (and welcome).

    So I've attached a workbook with a basic setup for what I need it to do, with the desired output shown in yellow.

    Thanks in advance.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,873

    Re: Formula to add rows based on required capacity

    If I understand correctly then the following will do what you want:
    1) The following formula in G5 and down references the number, picked by data validation in cell H3: =IF(ROW(1:1)<=H$3,ROW(1:1),"")
    2) The following formula in the range H5:I24 will copy the data from columns C:D based on whether or not there is a value in the corresponding row of column G: =IF($G5<>"",C5,"")
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    02-20-2018
    Location
    England
    MS-Off Ver
    Excel 2017
    Posts
    3

    Re: Formula to add rows based on required capacity

    Thanks for the reply, its not exactly what I need, but I may be able to modify that.

    I've attached another sheet, showing two cabinets (on CAB1 + CAB2), what I need to be able to do is if for example I now need more ways on CAB2, to select the drop down to say 10 ways and I add the blank (formatted) rows for me to populate.
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,873

    Re: Formula to add rows based on required capacity

    Perhaps this is closer to what you want. The 'Does not contain...' rule is restricted to the range that will receive the numbers and the cells to the right are formatted using the formula: =$G5<>""
    Let us know if you have any questions.
    Attached Files Attached Files

+ 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. Replies: 3
    Last Post: 07-15-2016, 12:39 PM
  2. Replies: 1
    Last Post: 01-12-2012, 05:26 PM
  3. Macro required to delete rows based on date
    By jalalini in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2008, 03:27 AM
  4. Counting capacity based on technician schedule
    By Nadine in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-06-2005, 03:05 AM
  5. Counting capacity based on technician schedule
    By Nadine in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-06-2005, 12:05 AM
  6. [SOLVED] Counting capacity based on technician schedule
    By Nadine in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-05-2005, 10:05 PM
  7. Can I increase row capacity beyond 65536 rows
    By Trish in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-23-2005, 08:06 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