Excel Function Help Needed, for transferring data between sheets with Macros or functions

JKM00

New Member
Joined
Mar 10, 2023
Messages
22
Office Version
  1. 365
Platform
  1. Windows
I had a post similar to this a month ago but now need updated help with a similar problem. I have had issues understanding and knowing how to adapt the code to work with my new brief and other uses.

I have data in a table in Sheet 1 seen below, this is mostly user inputted with some functions which take the user-inputted data and calculates other values.

ToolT (version 3).xlsb.xlsm
BCDEFGHIJKLMNOP
9 Month
10 April
11Impact and Investment Fund (IIF) 2023/24 - targets and £ estimates
12
13Indicator refBaseline (where req)2022/23 IIF IndicatorsTrend directionTargetsActualsMaximum points£ per pointList size adjustment (estimate)Prevalence adjustment (unknown)Max valuePoints earnedApprox value
14VI-02Percentage of patients aged 18 to 64 years and in a clinical at-risk group who received a seasonal influenza vaccination between 1 September 2023 and 31 March 2024éDenominatorLower thresholdUpper thresholdAchievement0.41579616PCN prev/ Nat prev
151,16172%90%86%113£198.000.420.05719£9,303.0287.64£412.65
168361,045998
17VI-03Percentage of children aged 2 to 3 who received a seasonal influenza vaccination between 1 September and 31 MarchéDenominatorLower thresholdUpper thresholdAchievement
1823864%82%75%20£198.000.420.01172£1,646.5511.99£11.57
19152195178
20HI-03Percentage of patients on the QOF Learning Disability register aged 14 years or over, who received a learning disability Annual Health Check and have a completed Health Action Plan in addition to a recording of ethnicityéDenominatorLower thresholdUpper thresholdAchievement
219260%80%65%36£198.000.420.00453£2,963.809.39£3.50
22557460
23CAN-02Percentage of lower gastrointestinal two week wait (fast track) cancer referrals accompanied by a faecal immunochemical test result, with the result recorded in the twenty-one days leading up to the referral.éDenominatorLower thresholdUpper thresholdAchievement
2415465%80%72%22£198.000.420.00759£1,811.2110.38£6.48
25100123111
26ACC-08Percentage of appointments where time from booking to appointment was two weeks or lesséDenominatorLower thresholdUpper thresholdAchievement
2710085%90%86%71£198.000.420.00493£5,845.2614.20£5.76
28859086
29Totals262£198.00£0.42£0.02£21,569.84133.60£439.97
IIF Input
Cell Formulas
RangeFormula
L14L14=B5/B7
I15,I27,I24,I21,I18I15=I16/F15
L15L15=L14
M15M15=F15/B5
N15,N27,N24,N21,N18N15=J15*K15*L15
O15,O27,O24,O21,O18O15=IF(I15<G15,0,IF(I15<H15,(J15*((G15-I15)/(G15-H15))),IF(I15>=H15,J15)))
P15,P27,P24,P21,P18P15=IF(M15="",O15*K15*L15,O15*K15*M15*L15)
G16,G28,G25,G22,G19G16=F15*G15
H16,H28,H25,H22,H19H16=F15*H15
L18L18=L14
M18M18=F18/B5
L21L21=L14
M21M21=F21/B5
L24L24=L14
M24M24=F24/B5
L27L27=L14
M27M27=F27/B5
J29,N29J29=SUM(J14:J28)
K29:M29K29=AVERAGE(K27,K24,K21,K18,K15)
O29:P29O29=SUMIF(O14:O28,"<>#DIV/0!")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I24Expression=IF(I25="",TRUE)textNO
I24Expression=IF(I24>=H24,TRUE)textNO
I24Expression=IF(I24>=G24,TRUE)textNO
I24Expression=IF(I24<G24,TRUE)textNO
I27Expression=IF(I28="",TRUE)textNO
I27Expression=IF(I27>=H27,TRUE)textNO
I27Expression=IF(I27>=G27,TRUE)textNO
I27Expression=IF(I27<G27,TRUE)textNO
I15Expression=IF(I16="",TRUE)textNO
I15Expression=IF(I15>=H15,TRUE)textNO
I15Expression=IF(I15>=G15,TRUE)textNO
I15Expression=IF(I15<G15,TRUE)textNO
I18Expression=IF(I19="",TRUE)textNO
I18Expression=IF(I18>=H18,TRUE)textNO
I18Expression=IF(I18>=G18,TRUE)textNO
I18Expression=IF(I18<G18,TRUE)textNO
I21Expression=IF(I22="",TRUE)textNO
I21Expression=IF(I21>=H21,TRUE)textNO
I21Expression=IF(I21>=G21,TRUE)textNO
I21Expression=IF(I21<G21,TRUE)textNO
Cells with Data Validation
CellAllowCriteria
B10ListApril,May,June,July,August,September,October,November,December,January,February,March,
F15:F16Any value
I16Any value
F18:F19Any value
I19Any value
F21:F22Any value
I22Any value
F24:F25Any value
I25Any value
F27:F28Any value
I28Any value
L14Any value


ToolT (version 3).xlsb.xlsm
BCDEFGHIJKLMNO
1
2Point Achievement 2023/24
3AprilMayJuneJulyAugustSeptemberOctoberNovemberDecemberJanuaryFebrauryMarch
4VI-02
5VI-03
6HI-03
7CAN-02
8ACC-08
9
10Funding Achievement 2023/24
11AprilMayJuneJulyAugustSeptemberOctoberNovemberDecemberJanuaryFebrauryMarch
12VI-02
13VI-03
14HI-03
15CAN-02
16ACC-08
17
18
19
20
21
IIF Summary


What I need is a way for the data from sheet 1 to be transferred either automatically or through the press/click of a button to sheet 2 which contains two tables which stores the values in column O and P. The data should be entered into the correct indicator row and the correct month. The user is able to select a month using a drop-down list in cell B10. My hope is that this works and I did get it working previously with help from this forum. I have tried coding this myself but haven't got it working and keep getting subscript and mismatch errors. Any advice on how to achieve this? I believe a Macro button is the way forward as a IF FALSE "DO NOTHING" is not easy to do in Excel.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,223,885
Messages
6,175,179
Members
452,615
Latest member
bogeys2birdies

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