Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-07-2022, 03:04 AM
jigadoo jigadoo is offline How to run worksheet multiple times changing a single input? Windows 10 How to run worksheet multiple times changing a single input? Office 2019
Novice
How to run worksheet multiple times changing a single input?
 
Join Date: Jun 2022
Posts: 2
jigadoo is on a distinguished road
Default How to run worksheet multiple times changing a single input?

I have a worksheet with an input at cell J2, many calculations, and a series of outputs at cells K4167:Z4167.




I want to run the worksheet several hundred times for different values of the input and produce a table showing the outputs for each input.


How does one do this in Excel?


Thank you.
Reply With Quote
  #2  
Old 06-07-2022, 12:20 PM
Logit Logit is offline How to run worksheet multiple times changing a single input? Windows 10 How to run worksheet multiple times changing a single input? Office 2007
Expert
 
Join Date: Jan 2017
Posts: 533
Logit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the rough
Default

You'll want to COPY VALUES ONLY from cells K4167:Z4167 each time it changes.

Then PASTE SPECIAL VALUES to the first empty in a blank worksheet. Paste to A1 to begin with ... the code will do the rest.

When ready, you'll have a table of data to view.

Google for examples for the terms in bold. Tons of examples to review.
Reply With Quote
  #3  
Old 06-07-2022, 02:00 PM
jigadoo jigadoo is offline How to run worksheet multiple times changing a single input? Windows 10 How to run worksheet multiple times changing a single input? Office 2019
Novice
How to run worksheet multiple times changing a single input?
 
Join Date: Jun 2022
Posts: 2
jigadoo is on a distinguished road
Default

Thanks, Logit. If I understand correctly, you are suggesting manually changing the independent variable and then manually copying and pasting the output to save it? If so, that is practical for a small number of cases. But I have many hundreds of cases to test each, on a number of different variants of the basic worksheet. So I am looking for an automated solution.
Reply With Quote
  #4  
Old 06-07-2022, 02:57 PM
Logit Logit is offline How to run worksheet multiple times changing a single input? Windows 10 How to run worksheet multiple times changing a single input? Office 2007
Expert
 
Join Date: Jan 2017
Posts: 533
Logit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the rough
Default

No ... nothing manual.

The bolded, key terms I listed are used in VBA Coding. Creating macros that utilize these terms will automate the functions you are seeking.

And ... there are plenty of complete example code you can simply copy and paste into your project.
Reply With Quote
  #5  
Old 06-08-2022, 12:37 PM
p45cal's Avatar
p45cal p45cal is offline How to run worksheet multiple times changing a single input? Windows 10 How to run worksheet multiple times changing a single input? Office 2019
Expert
 
Join Date: Apr 2014
Posts: 866
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

Go on, I dare you; attach a sample workbook outlining the range of independent variables, and some samples of the 'different variants of the basic worksheet'.


You may find Switch between various sets of values by using scenarios useful where:
"A Scenario is a set of values that Excel saves and can substitute automatically on your worksheet. You can create and save different groups of values as scenarios and then switch between these scenarios to view the different results. If several people have specific information that you want to use in scenarios, you can collect the information in separate workbooks, and then merge the scenarios from the different workbooks into one.
After you have all the scenarios you need, you can create a scenario summary report that incorporates information from all the scenarios."
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
combining worksheets of same xls into a single worksheet pavan.polish Excel 2 03-14-2018 06:48 PM
How to run worksheet multiple times changing a single input? Combining different worksheets into a single worksheet. jimmy2016 Excel Programming 4 10-15-2016 09:05 AM
How to run worksheet multiple times changing a single input? Combine values from different worksheets into a single worksheet. jimmy2016 Excel 2 10-06-2016 09:15 AM
how to open a template 12 times for a single document - create calendar wondermuse Word 2 12-30-2014 02:58 AM
Multiple Input, Multiple Digital Signatures Jeff Word 0 01-04-2012 09:03 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:43 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft