Refund or Payment

MrDB4Excel

Active Member
Joined
Jan 29, 2004
Messages
348
Office Version
  1. 2013
Platform
  1. Windows
I have spent the better part of today trying all sorts of formulas and searching the web for an answer and I just don’t seem to be able to figure this to a satisfactory conclusion. Any help will be very much appreciated.

I have a series of sheets within a workbook that detail building fees that are paid monthly with specific static amounts that at the end of the year are paired against actual fees as seen in the accompanying Xl2bb Mini Sheets thus providing a refund or payment due.

In cell B2, if there is a refund due because of overpayment during the year then cell B2 will show Refund Received plus a date per the date that exists in cell N2; otherwise it must remain blank and show nothing.

In cell B3, if I need to make a payment because building expenses were more during the year than what I paid by the month then cell B3 would show Payment Made plus a date per the date that exists in cell N2; otherwise it must remain blank and show nothing.

In short only one of the two cells B2 & B3 will show data depending on what data exists in C24 or C26.

I have provided two Mini Sheets of Xl2bb, one for sheet 2015 and one for sheet 2018.

Sheet 2015 shows a refund of 4,532 Kč is due and sheet 2018 shows I need to make a payment of 922 Kč to bring my account out of arrears.

Obviously, these are past tense, meaning refunds and payments have been made. I am merely setting up this workbook for future years based on existing past data. Included in this workbook are additional sheets 2016, 2017, 2019, 2020, 2021, & 2022.

Getting this all to work will drastically reduce my time involved for future years.


Sheet 2015
Annual Building Fee Statement.xlsx
BCDEFGHIJKLMNO
2Refund Received 04 May 2016Množství AmountSpotřeba ConsumptionNáklady Costs5/4/2016
3na objekt per objectcelkové totalZpůsob rozúčt. = Way to break downPodíl % Percentagena objekt per objectcelkové totalna objekt per objectcelkové totalCena/MJ Price/MJZaplaceno PaidRozdíl Difference04 May 2016
4fond oprav = pool repairs298.0416,274.00Spoluvlastnický podíl = Co-ownership share100.000.000.007,110.00390,576.000.007,110.000.00
5el. energie spol. Prostor ´power???0.4232.00Osoby = Persons100.000.000.00298.6922,801.000.00100.00198.69
6odvoz odpadu = waste removal0.4233.00Osoby = Persons100.000.000.00136.1810,720.000.00175.00-38.82
7otop = One Tambon one product3,575.10209,685.80Měřidlo = Gauge100.000.000.003,575.10209,685.800.006,365.00-2,789.90
8poplatek za rozúčtování = the fee for the accounting distribution261.409,040.30Měřidlo = Gauge100.000.000.00261.409,040.300.000.00261.40
9TUV = ???0.00161,410.60Měřidlo = Gauge100.000.000.000.00161,410.600.001,500.00-1,500.00
10úklíd = cleaning0.4233.00Osoby = Persons100.000.000.00180.6614,222.000.00550.00-369.34
11voda = water247.4056,223.10Měřidlo = Gauge100.000.000.00247.4056,223.100.00750.00-502.60
12výtah = lift0.4232.00Osoby = Persons100.000.000.00508.4138,810.000.00300.00208.41
13správa = management0.000.000.000.000.00650.000.000.00650.000.00
14zaokrouhlení = rounding1.000.000.000.000.000.160.000.000.000.16
15Celkem za objekt Mariánské Lázně-533-201Celkem za objekt Mariánské Lázně-533-20112,968.0017,500.00-4,532.0045320.00
16vyúčtování = billing
17
18Přeplatek = Overpayment4,532.00 Kč
19
20Nedoplatek = Arrears, Balance Due0.00 Kč
21
22Stav fondu oprav = Status of the repair pool
23
24Refund Received4,532.00 Kč
25
26Payment Made 
2015
Cell Formulas
RangeFormula
B2B2=IF($C$24>0,$B$24)&" "&$N$3
N3N3=TEXT($N$2,"dd mmm yyyy")
I15,L15:M15I15=SUM(I4:I14)
N15N15=IF($M$15<0,$M$15*-1,"")
O15O15=SUM($M$15,$N$15)
C18C18=IF($M$15<0,$N$15,"")
C20C20=IF($M$15>0,$M$15,$O$15)
C24C24=IF($C$18=$N$15,$C$18)
C26C26=IF($C$20=0,"",IF($C$20>0,$N$15))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C4:D14Cell Value<0textNO
F4:M14,I15:M15Cell Value<0textNO


Sheet 2018
Annual Building Fee Statement.xlsx
BCDEFGHIJKLMNO
2Refund Received 29 Apr 2019Množství AmountSpotřeba ConsumptionNáklady Costs4/29/2019
3na objekt per objectcelkové totalZpůsob rozúčt. = Way to break downPodíl % Percentagena objekt per objectcelkové totalna objekt per objectcelkové totalCena/MJ Price/MJZaplaceno PaidRozdíl Difference29 Apr 2019
4fond oprav = pool repairs711.0016,274.00Spoluvlastnický podíl = Co-ownership share100.000.000.0017,064.00390,576.000.0017,064.000.00
5el. energie spol. Prostor ´power???2.0032.08Osoby = Persons100.000.000.001,374.5822,046.000.00240.001,134.58
6odvoz odpadu = waste removal2.0033.08Osoby = Persons100.000.000.00940.8415,560.000.00420.00520.84
7otop = One Tambon one product7,004.00198,208.80Měřidlo = Gauge100.000.000.007,004.00198,208.800.0015,276.00-8,272.00
8poplatek za rozúčtování = the fee for the accounting distribution427.2010,486.50Měřidlo = Gauge100.000.000.00427.2010,486.500.000.00427.20
9TUV = ???13,545.30157,099.70Měřidlo = Gauge100.000.000.0013,545.30157,099.700.009,600.003,945.30
10úklíd = cleaning2.0033.08Osoby = Persons100.000.000.00853.2914,112.000.001,320.00-466.71
11voda = water5,050.0063,408.20Měřidlo = Gauge100.000.000.005,050.0063,408.200.001,800.003,250.00
12výtah = lift2.0032.08Osoby = Persons100.000.000.001,103.1117,692.000.00720.00383.11
13správa = management0.000.00100.000.000.001,560.000.000.001,560.000.00
14zaokrouhlení = rounding1.000.00100.000.000.00-0.320.000.000.00-0.32
1548,922.0048,000.00922.00 922.00
16
17
18Přeplatek = Overpayment 
19
20Nedoplatek = Arrears, Balance Due922.00 Kč
21
22
23
24Refund Received =IF(C18=N15,C18)
25
26Payment Made  
27
280=IF(ISBLANK(C26)," ",B27)
29FALSE=IF(D26=0,"")
30Payment Made=IF(D26<>0,B26)
2018
Cell Formulas
RangeFormula
B2B2=IF($C$24>0,$B$24)&" "&$N$3
G2G2='2015'!$G$2:$H$2
I2I2='2015'!$I$2:$J$2
C2C2='2015'!$C$2:$D$2
C3:M3C3='2015'!C$3
N3N3=TEXT($N$2,"dd mmm yyyy")
E4:E12E4='2015'!$E4
B26,B24,B4:B14B4='2015'!$B4
I15,L15:M15I15=SUM(I4:I14)
N15N15=IF($M$15<0,$M$15*-1,"")
O15O15=SUM($M$15,$N$15)
B18B18='2015'!$B$18
C18C18=IF($M$15<0,$N$15,"")
B20B20='2015'!$B$20
C20C20=IF($M$15>0,$M$15,$O$15)
C24C24=IF($C$18=$N$15,$C$18)
C26C26=IF($C$20=0,"",IF($C$20>0,$N$15))
D26D26=C26
B28B28=IF(ISBLANK(C26)," ",B27)
C28:C30C28=FORMULATEXT(B28)
B29B29=IF(D26=0,"")
B30B30=IF(D26<>0,B26)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C4:C14Cell Value<0textNO
F4:M15Cell Value<0textNO
D4:D14Cell Value<0textNO
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
I hope that I understand your need.

First I presume that there will always be either refund or payment. In all scenarios there be one or the other.

Try this formula in cell B2. No need for a separate formula in B2 and B3 as this formula either says 1. "Refund Received" or 2. "Payment Made".

=IF(N(C24)=0, "", "Refund Received ") & IF(N(C26)=0, "", "Payment Made ") & N3
 
Upvote 0
This worked very well. I only changed one thing: from C26 to C20
=IF(N(C24)=0, "", "Refund Received ") & IF(N(C20)=0, "", "Payment Made ") & N3
I suppose I could have kept what you wrote but I would have had to fix something else and the simple change from C26 to C20 works in both cases.
Then it worked in all instances.
Thank you so much, great help.
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,180
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