+ Reply to Thread
Results 1 to 8 of 8

How to expand a formula that follows a pattern in Excel?

  1. #1
    Registered User
    Join Date
    08-07-2019
    Location
    India
    MS-Off Ver
    2007
    Posts
    21

    How to expand a formula that follows a pattern in Excel?

    I have a very simple formula in an Excel sheet. But the problem is, I need to copy it 50 times while changing the reference cells.

    My formula is this:

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

    I would like to expand it until H53 as:

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


    I can copy and paste it 50 times and edit the formula. But it will take a lot of time and effort.

    Is there any easy way to do this?
    Attached Files Attached Files
    Last edited by ajeshkdy; 08-10-2019 at 10:29 AM.

  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
    79,365

    Re: How to expand a formula that follows a pattern in Excel?

    I think you need to tell us more about the context. Explain what the purpose of the formula is. There is no doubt a more effective way of working.
    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
    Registered User
    Join Date
    08-07-2019
    Location
    India
    MS-Off Ver
    2007
    Posts
    21

    Re: How to expand a formula that follows a pattern in Excel?

    Hi,

    Thanks for your reply.
    I have attached a sample file to better understand my situation. In the original file, I have 50 sheets. Each sheet named 1, 2,3 etc has 4000 rows and 5 columns. With the above formula, I am trying to change the random number in F12 of the last sheet according to some conditions as indicated in the formula.

  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
    79,365

    Re: How to expand a formula that follows a pattern in Excel?

    Where in the attachment will we find the cells where you want the formula?

  5. #5
    Registered User
    Join Date
    08-07-2019
    Location
    India
    MS-Off Ver
    2007
    Posts
    21

    Re: How to expand a formula that follows a pattern in Excel?

    Oh, sorry! My formula is in F12 of the worksheet named 'Key Form' .

  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
    79,365

    Re: How to expand a formula that follows a pattern in Excel?

    Not sure, but try this:

    =IF(INDEX($I$3:$I$29,MATCH(ABSTRACT!D5,$H$3:$H$29,1))=F7,INDEX($J$3:$J$29,MATCH(ABSTRACT!D5,$H$3:$H$29,1),""))

  7. #7
    Registered User
    Join Date
    08-07-2019
    Location
    India
    MS-Off Ver
    2007
    Posts
    21

    Re: How to expand a formula that follows a pattern in Excel?

    I hope this will work after some tweaks.
    The values in column H may not be matched with the value in D5 of "Abstract" because Column H contains maximum limit to assign the corresponding random number.
    Last edited by ajeshkdy; 08-10-2019 at 11:03 AM.

  8. #8
    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
    79,365

    Re: How to expand a formula that follows a pattern in Excel?

    Yes, well I don't follow that last statement, I'm afraid, but if you can get it working that's good. Let us know.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. [SOLVED] Excel formula for pattern matching
    By sandu1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-14-2016, 10:40 PM
  2. Expand a code using a formula in Excel
    By t.regi in forum Excel General
    Replies: 5
    Last Post: 09-22-2014, 02:19 AM
  3. Copy down hypertext cell range pattern & cell reference formula pattern
    By Underexcelling in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-10-2014, 03:23 AM
  4. Excel 2007 copying formula with pattern
    By dub_01 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-25-2013, 02:06 PM
  5. Expand formula in EXCEL
    By ÎÎ¹ÎºÎ¿Ï in forum Excel General
    Replies: 2
    Last Post: 07-31-2006, 06:53 AM
  6. [SOLVED] Is it possible to expand the formula bar in excel?
    By Tivpine in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-16-2005, 07:05 PM

Tags for this Thread

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