Closed Thread
Results 1 to 5 of 5

Improved Formula / i've run out room to extend the current formula / (avdanced code needed

  1. #1
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    471

    Improved Formula / i've run out room to extend the current formula / (avdanced code needed

    Hello All

    RE: i've posted this on the formula section as well, I've been advised that CODE maybe the solution

    I'm told the current formula in C6 is the only solution to my current problem,

    I've pasted this repeatedly to capture more columns, (by moving the little colored boxes into the correct column) the formula does work and the sheet is almost doing exactly what i want it to do

    IF($A6<>"",INDEX($Z:$AE,MATCH(BC$5,$CX:$CX,0),MATCH(C$5,$Z$5:$AE$5,0))(INDEX($AK:$CW,MATCH($A6,$AH:$AH,0),MATCH(INDEX($CX:$CX,MATCH(BC$5,$CX:$CX,0)),$AK$5:$CW$5,0))))

    My BIG problem, there are 37 columns that i cant add to C6 formula starting at BM i need to add these columns to the current formula some how,

    can this be replicated via a code (please note there is only a formula in column c ..... the same formula will need to be copied to D,E,F,G

    Paul
    Attached Files Attached Files

  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,926

    Re: Improved Formula / i've run out room to extend the current formula / (avdanced code ne

    wow - just...wow!!

    What on earth are you trying to do there?
    For a start, you could probably do away with most of those if(A6<>""

    The basis seems to be...
    =IF($A6<>"",INDEX($Z:$AE,MATCH(AK$5,$CX:$CX,0),MATCH(C$5,$Z$5:$AE$5,0))*(INDEX($AK:$CW,MATCH($A6,$AH:$AH,0),MATCH(INDEX($CX:$CX,MATCH(AK$5,$CX:$CX,0)),$AK$5:$CW$5,0))))
    So you are looking up a value in Z:AE * a value in AK:CW
    Then repeating that and adding them together
    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
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    471

    Re: Improved Formula / i've run out room to extend the current formula / (avdanced code ne

    LOL!!!

    I'm trying to use excel to work out components required to build a lock set,

    Column A is looking at a (built up lockset part number) row 5, then it looks up the components required to build that particular lockets....

    component list is in column A, the values come from the table to the far right

  4. #4
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Improved Formula / i've run out room to extend the current formula / (avdanced code ne

    As OP notes this is posted here also: https://www.excelforum.com/excel-for...t-formula.html

    I've posted a suggested "simplification". Would ask you close either / or Thread, per Forum Rules...

  5. #5
    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,456

    Re: Improved Formula / i've run out room to extend the current formula / (avdanced code ne

    This duplicate is now closed. Only one thread per issue is permitted.
    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.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Improved Formula / i've run out room to extend the current formula
    By pmw19800 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-29-2018, 01:58 PM
  2. Code to extend formula on changing ranges
    By bunty_1244 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-22-2016, 07:20 PM
  3. Current Streak (Win, Loss or Draw) formula needed?
    By buttsy00 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 04-12-2015, 06:51 AM
  4. A Challenge:Extend Code of a button to remove the Formula of the Saved Page and lock
    By ronettes in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-10-2014, 06:01 AM
  5. [SOLVED] Extend current formula for a date range
    By playaller in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-09-2013, 06:26 PM
  6. Formula needed for COUNTIF in current month
    By atomickitty in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-02-2012, 03:00 PM
  7. Replies: 4
    Last Post: 09-11-2008, 11:56 AM

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