+ Reply to Thread
Results 1 to 6 of 6

Thread: Expanding a complex range reference

  1. #1
    Registered User
    Join Date
    03-05-2010
    Location
    Derby, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Unhappy Expanding a complex range reference

    Here is a brain teaser for those that love complex formulas. Its been driving me mad for weeks and is preventing me from finishing off my new spreadsheet.

    Essentially this forms part of a complex spreadsheet we use in our business for completing quotes for customers. Based on the software items selected for the quote I have used a formula I found on a forum like this to remove the blanks from the list of chosen software items, so that in the final quotation to the customer it appears as a nice neat list.

    Although the formula works ok, when I have subsequently added more and more software items to the list of products, the range the formula is looking at to remove the blanks needs extending. I cant for the life of me figure out how to extend it - the obvious route of simply changing the cell references doesnt seem to work.

    I have attached my example with subsitute product names that show the list of software items on the left, and the list with the blanks removed on the right. You can see the formuala concerned in cell E3 downwards. You will notice that on the left is has stopped picking up items from the list from the item "Tea" downwards. I need to be able to extend the range to pick up all products. Its driving me mad.

    Thank you for your help in advance.

    Kind regards,

    Rob
    Attached Files Attached Files
    Last edited by bob lad; 03-05-2010 at 10:45 AM.

  2. #2
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,223

    Re: Calling All Excel Experts

    Hi Bob. Welcome to the forum, this place is an awesome resource.

    Be sure to read through the Forum Rules so you can use and follow them effectively. For instance, you'll need to edit that post above and change your title to specifically state the topic, as per forum rule #1.

    Something like: "Automatically expanding a range reference"
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    03-05-2010
    Location
    Derby, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Calling All Excel Experts

    Apologies. Done. Just reading the rules now.

  4. #4
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,223

    Re: Expanding a complex range reference

    Here...I appreciate the SMALL(IF() construct, but I'm not a huge fan. And if your potential data list could get very long, performance issues with your sheet could set in very quickly.

    I prefer to use key columns to add unique index numbers. It's simple to create a list from an index.
    Have a look.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  5. #5
    Registered User
    Join Date
    03-05-2010
    Location
    Derby, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Expanding a complex range reference

    Well my original post title of "calling all excel experts" was appropriate after all. You are a guru. Im not quite sure what you have done but it certainly achieves the effect and I can have a good play with it and see how it works.

    Many thanks and much appreciated. Have a good weekend.

    One happy customer.

    Bob Lad.

  6. #6
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,223

    Re: Expanding a complex range reference

    My pleasure. Glad to help.

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated. It is found across from the "time" in each of our posts.)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

+ 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.2.0