+ Reply to Thread
Results 1 to 9 of 9

Formula to list floors based on data input

  1. #1
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    416

    Formula to list floors based on data input

    Hi,

    My input would be two cells :

    No of basements:2
    No of floors:3

    I need a formula to list the floors horizontally according to the above data:

    For eg: as per above data,output should be:

    Basement 2 | Basement 1| Ground Floor| 1st Floor|2nd Floor|3rd Floor|Roof Floor

    Thanks in advance..

  2. #2
    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,460

    Re: Formula to list floors based on data input

    The problem with this is the illogical aspects of this: how is Excel to know that the basements should be listed in reverse order, that there are also ground and roof floors to add, and the the floors should be listed in ascending order?
    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.

  3. #3
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    416

    Re: Formula to list floors based on data input

    Hi AliGW,

    Thanks for the reply..

    Unfortunately these reasons are the challenges in forming a good solution to this problem..

    Hope the gurus can help...

  4. #4
    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,460

    Re: Formula to list floors based on data input

    Not without some more input from you. What other parameters are there? Excel cannot make assumptions any more than we can. What else needs taking into consideration? Give some more examples, please.

  5. #5
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    416

    Re: Formula to list floors based on data input

    Quote Originally Posted by AliGW View Post
    What other parameters are there? What else needs taking into consideration?
    Nothing more..
    As a general rule, Roof Floor should be the last
    Ground Floor should come after the last basement floor
    If there are no basements, the list should begin with Ground Floor..
    The no of floors will never be zero in my case..so no need to consider that possibility..

  6. #6
    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,460

    Re: Formula to list floors based on data input

    Give some more examples, as requested in post #4. Attach a workbook.

  7. #7
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    416

    Re: Formula to list floors based on data input

    Attached with examples..
    Attached Files Attached Files

  8. #8
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Formula to list floors based on data input

    Please try at D1

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    416

    Re: Formula to list floors based on data input

    Excellent!
    Thanks a lot.. Bo_Ry

+ 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. Using VBA to input daily list of data into excel based on date
    By skinmonth in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2016, 01:22 PM
  2. Formatting Chart Area - Floors & Walls - no option in list
    By lafemme1006 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 07-26-2015, 07:28 AM
  3. populate data from a list based on numbers input
    By ve3jtd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2015, 02:49 PM
  4. Replies: 6
    Last Post: 09-06-2012, 01:07 AM
  5. Replies: 7
    Last Post: 05-09-2012, 04:44 AM
  6. Formula to input data from list
    By Tictac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-29-2010, 03:42 AM
  7. Formula to return a list based on user input
    By TopSlacker in forum Excel General
    Replies: 1
    Last Post: 03-06-2008, 02: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