+ Reply to Thread
Results 1 to 10 of 10

Batch solve complex excel formula

  1. #1
    Registered User
    Join Date
    05-06-2011
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    9

    Batch solve complex excel formula

    Hello,

    I am new to this forum and hope to get your help!

    I have a complex excel formula with many conditionals, and trying to "apply" the formula to a datasheet of 5,000 rows.

    It would actually be difficult to copy the formula 5000 times. I am wondering if it is possible to keep the formula in 1 sheet in excel, and apply it to 5000 rows on another sheet to calculate 5000 results?

    I have done a lot of google searching but I don't think I've come up with the right terms to describe what I am looking for, hope to get your help.

    Thank you!
    Shawn

  2. #2
    Valued Forum Contributor unit285's Avatar
    Join Date
    10-29-2015
    Location
    TN
    MS-Off Ver
    Office 365
    Posts
    358

    Re: Batch solve complex excel formula

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


    Probably need more info before we can be of much help. Maybe post a copy of your workbook so we can see what you're trying to do?

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Batch solve complex excel formula

    I agree that we might need more info before we can provide any real help. Why do you think it will be difficult to make 5000 copies?

    My first thought is that you might be able to use a data table https://support.office.com/en-us/art...2-77542a5ea50b
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    05-06-2011
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Batch solve complex excel formula

    Thank you, I've attached my example excel file.

    I am trying to run the data rows (Data Sheet) through the "Three Formulas" sheet and then record the result back on the data sheet in the appropriate boxes.

    There are 4 inputs from the data sheet, which feed into the 3 formulas.

    Then, the results are in yellow, green, and blue, which I would like to record in the corresponding yellow, green and blue column in the data sheet. I've filled in the 1st row in the Data sheet with the intended result of the completed run.

    Hopefully, I've explained myself more clearly, sorry for the confusion.

    You can see the formulas are quite complex, so I guess my question can be rephrased as: How can I run data through a preexisting formula in order to record a result in an automated manner?
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor unit285's Avatar
    Join Date
    10-29-2015
    Location
    TN
    MS-Off Ver
    Office 365
    Posts
    358

    Re: Batch solve complex excel formula

    I would definitely think VBA would be a better option than formulas for this.

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

    Re: Batch solve complex excel formula

    Shall I move the thread to the VBA section?
    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.

  7. #7
    Registered User
    Join Date
    05-06-2011
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    9
    Quote Originally Posted by AliGW View Post
    Shall I move the thread to the VBA section?
    Please I think so, thanks.

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Batch solve complex excel formula

    I think MrS's suggestion of a data table would work fine.
    Entia non sunt multiplicanda sine necessitate

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Batch solve complex excel formula

    L
    M
    N
    O
    P
    Q
    R
    S
    T
    U
    V
    4
    Row
    Ax Len
    K-1
    K-2
    Tgt Refr
    Row
    21.74
    21.89
    22.17
    M5:P5: {=INDEX(Data!A:D, L5 + 1, 0)}
    5
    1
    23.44
    44.77
    45.61
    -1.63
    1
    21.74
    21.89
    22.17
    R4: =D12
    6
    2
    23.55
    23.13
    22.86
    S4: =D15
    7
    3
    19.67
    19.63
    19.36
    T4: =D18
    8
    4
    22.39
    22.70
    23.19
    9
    5
    12.73
    12.59
    12.91
    10
    6
    23.96
    23.86
    24.14


    Move the input cells to M5:P5 as shown (just to get away from the clutter) and enter the formula to retrieve data values as shown.

    Enter row values in col Q.

    Enter formulas to retrieve results in R4:T4.

    Select Q4:T10, Data > What If Analysis > Data Table, Column Input Cell: L5
    Last edited by shg; 02-01-2019 at 03:58 PM.

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Batch solve complex excel formula

    Workbook before I clobber it.
    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: 08-12-2016, 10:09 AM
  2. [SOLVED] Excel Formula for creating a Batch Number
    By seenai in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-12-2016, 04:26 AM
  3. I need to solve a complex power equation
    By mrideout in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-17-2015, 02:31 PM
  4. How can I use excel to solve complex integrals
    By Adeyemi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-11-2013, 07:38 AM
  5. trying to solve an if formula in excel
    By jamie35 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-06-2012, 05:17 PM
  6. [SOLVED] Formula to round down on a batch and exclude anything under a full batch
    By toomuchbrew in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-15-2012, 11:04 AM
  7. Replies: 1
    Last Post: 06-29-2012, 03:21 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