parse inputs to display outputs from an excel file through VBA

Status
Not open for further replies.

Prachijain

New Member
Joined
May 8, 2018
Messages
12
Hello, I'm a newbie in Excel VBA. I have a task assigned where I need to read the inputs from a excel file,like reading of different test cases and paste the outputs(after formulas and all applied) in different sheet everything through a VBA. I don't have a JSON data or a URL to read the data from, it's all from the excel filename where I need to parse the data and get the outputs for different test cases and later math the results with an api. Below are my inputs and outputs of my worksheet. Any help would be greatly appreciated. Thank You.

Excel 2010
CDEFG
1Input FieldsValuesOutput FieldsValues
2input_BirthDate6/5/1954output_Range_Age170
3input_HireDate8/1/2013output_Range_Age2
4input_GenderFoutput_Range_Age3
5input_AnnualPlanComp50224output_Range_Age4
6input_EmployeeClassRegular School Districtoutput_Range_Age5
7input_AnnualPayGrowth1output_Range_Custom64
8input_MarketPerformanceAverageoutput_Balance_Age1 $ -
9output_Balance_Age2 $ -
10input_PVD70output_Balance_Age3 $ -
11input_NRA62output_Balance_Age4 $ -
12input_MBAA65output_Balance_Age5 $ -
13input_Custom_BCD64output_Balance_Custom $ -
14input_Custom_TermAge64output_Balance_LumpSum $ -
15
16input_RemainingElections1output_CurrentAge63
17output_MinAgeTerm64
18input_Pre2011ServiceYears4output_MaxAgeTerm80
19input_ProjectedServiceYears11output_MinAgeBCD70
20input_ProjectedBenefitAmount7028.58output_MaxAgeBCD65
21input_DROP_LumpSum0
22output_DROP_QuestionFALSE
23input_ProjBuyBackABOoutput_DROP_Years
24input_DateABO2/28/2018output_DROP_Start
25input_ProjectedABO103461.51output_DROP_1stYear
26input_ProjectedAAL48696output_DROP_Accumulation
27input_DateAAL3/31/2018output_DROP_AccumulationAnnuity
28input_InvestmentBalanceTBA0output_DROP_TotalAnnuity
29input_CurrentABO80772.6output_DROP_COLA1.09%
30
31output_BuyBack_PP $ 48,696.00
32output_BuyBack_Payment $ 48,696.00
33output_BuyBack_IP_AddOn $ 2,626.60
34output_BuyBack_TotalAnnuity $ 2,626.60

<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Inputs Outputs

Worksheet Formulas
CellFormula
G2=Model!B33
G3=Model!B34
G4=Model!B35
G5=Model!B36
G6=Model!B37
G7=Model!B38
G8=Model!B45
G9=Model!B46
G10=Model!B47
G11=Model!B48
G12=Model!B49
G13=Model!B50
G14=Model!B44
G16=Model!B20
G17=output_CurrentAge+1
G19=IF(input_Custom_TermAge>input_MBAA,input_Custom_TermAge,MAX(output_MinAgeTerm,input_PVD))
G20=MAX(input_Custom_TermAge,input_MBAA)
G22=Model!G125
G23=Model!G131
G24=Model!G133
G25=IF(output_DROP_Question,input_ProjectedBenefitAmount,"")
G26=IF(output_DROP_Question,Model!F87,"")
G27=IF(output_DROP_Question,Model!B86,"")
G28=IF(output_DROP_Question,Model!B87,"")
G29=ROUND(output_Global_DROP_COLA/100,4)
G31=Model!E100
G32=Model!E101
G33=IF(Model!E103<0,0,Model!E103)
G34=IF(output_BuyBack_IP_AddOn=0,Model!B50,Model!B51)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Workbook Defined Names
NameRefers To
input_Custom_TermAge='Inputs Outputs'!$D$14
input_MBAA='Inputs Outputs'!$D$12
input_ProjectedBenefitAmount='Inputs Outputs'!$D$20
input_PVD='Inputs Outputs'!$D$10
output_BuyBack_IP_AddOn='Inputs Outputs'!$G$33
output_CurrentAge='Inputs Outputs'!$G$16
output_DROP_Question='Inputs Outputs'!$G$22
output_Global_DROP_COLA='Inputs Outputs'!$J$5
output_MinAgeTerm='Inputs Outputs'!$G$17
PVD='Inputs Outputs'!$D$10

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>


****** id="cke_pastebin" style="position: absolute; top: 0px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">
****** id="cke_pastebin" style="position: absolute; top: 0px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">Hello, I'm a newbie in Excel VBA. I have a task assigned where I need to read the inputs from a excel file,like reading of different test cases and paste the outputs(after formulas and all applied) in different sheet everything through a VBA. I don't have a JSON data or a URL to read the data from, it's all from the excel filename where I need to parse the data and get the outputs for different test cases and later math the results with an api. Any help would be greatly appreciated. Thank You.Hello, I'm a newbie in Excel VBA. I have a task assigned where I need to read the inputs from a excel file,like reading of different test cases and paste the outputs(after formulas and all applied) in different sheet everything through a VBA. I don't have a JSON data or a URL to read the data from, it's all from the excel filename where I need to parse the data and get the outputs for different test cases and later math the results with an api. Any help would be greatly appreciated. Thank You.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Duplicate https://www.mrexcel.com/forum/excel...ay-outputs-applying-formulas.html#post5067426

Please do not post the same question multiple times. All clarifications, follow-ups, and bumps should be posted back to the original thread.
Per forum rules, posts of a duplicate nature will be locked or deleted (rule 12 here: Forum Rules).

Note that sometimes posts from new users require Moderator approval before you can see them on the public forums. When this happens, you should see a message to that effect when you try to post it.
Please be patient and do not attempt to post the question again.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,215,135
Messages
6,123,241
Members
449,093
Latest member
Vincent Khandagale

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top