Formula to select a cell when a condition is met etc

pedro-egoli

Well-known Member
Joined
Apr 25, 2004
Messages
1,217
Office Version
  1. 2016
Platform
  1. Windows
On another thread http://www.mrexcel.com/board2/viewtopic.php?t=146667

I sought assistance with a formula to calculate Australian Tax on Income, and have this side of things working well, with the two formulae provided.

As part of the worksheet I want to start off all the calculations that lead to the tax calculation at the age I input for initial year.
This way anyone can input their age and have the spreadsheet start calculations from their individual age.

Details of cells involved are
A4 Opening Balance (input)
B5 Opening Age (input)
B8:B53 Ages running from age 55:100
D8:D53 Cells for Opening Balance
N.B. Opening balance in column D will be A4 initially but in second year and beyond it will be the closing balance for the year before.
G8:G53 Is the closing balance made up by that year's Opening balance+Income-Drawings.

What I need is a formula that will input the figure of A4 in the cell adjacent to the year which matches the age input into B5.
I then need the following years Opening balance (from cell B8:b53) to be that of the initial year's Closing balance ; this to continue to th cell B53.

eg. If age 57 is input in B5 I want balance in A4 to appear in cell D10 and in cell cell D11 i want it to be the closing balance of previous year shown in G10. This transfer of balances to continue to row 53.

It would neaten up the sheet if the rows above the initial opening balance (rows 8 and 9) to be blank.

All suggestions welcome thanks
Pedro
 
<<What I need is a formula that will input the figure of A4 in the cell adjacent to the year which matches the age input into B5.>>

This is difficult to understand. Can you copy some of the values in your columns, and then explain it? :huh:
 
Upvote 0
Hi,

Try:

=IF(B8<$A$5,"",IF(B8=$A$5,$A$4,INDEX($G$8:$G$53,COUNT($C$7:C7))))
In C8 and drag down.
Book1
ABCDEFGH
1
2
3
410000
558
6
7ageopeningclosing
855 10001005
956 10011006
1057 10021007
11581000010031008
1259100510041009
1360100610051010
1461100710061011
1562100810071012
1663100910081013
Sheet1
 
Upvote 0
Fairwinds,
Thanks for posting the sheet.

To clarify position away from balance of $10000 in cell A4 and Age 58 in cell A5. I am looking for the A4 figure to transfer to cell C11 which will be the opening balance at age 58, and your formula does that part well

It would be ideal if all cells in D8:D10 and G8:G10 could be left blank.
This is first part of exercise in transferring opening balance to the cell adjacent to applicable age.

Next, if we assume that the closing balance in that year is $11000 (this is dictated by O.B.+ Income-drawings through the year) I want that to transfer to cell C12 as the opening balance for next year and so on to age 100.

Thanks again
Pedro
 
Upvote 0
OK.

I understand now that you need a formula for D and G too, in the same manner. They should be calculated based on Income & Drawings. Where can I find those and how must I index them to find the year?
 
Upvote 0
Fairwinds,
From your sheet

Column D is Opening Balance for each year from commencment. This is the same as my sheet
Column E is vacant whereas in my sheet it is for Earnings and there is a simply formula based around opening balance and a forecast earning rate on that balance; so no need for this to change.
Column F is also vacant but in my sheet it is for Drawings
Column G is the Closing Balance from 1st year to last year. The formula for this is simply the cell reference across from Opening balance and is as follows ,assuming cell D11 is the Opening balance (from A4)

=D11+E11-f11
This is dragged down to last row.

To clarify in Column C I have a "factor" which is used to calculate the Drawing figure (column F) and would prefer to leave that column as is, if possible.

So where you used C8 in your sheet if that could be D8 that would suit my sheet ideally.
Having said that if I need to add a row I can easily do that.

To summarise
I need to transfer the Opening Balance in A4 to a cell in column D in row that corresponds with the age in A5 and which are listed in Column B (from 55:100- as B8:B53
From there Column E handles the Earnings which are simply (O.B.*Earning rate ) and in sheet it would be =D11*Earning rate (a rate I have set in cell B4 and is for the full year, and subsequent years)
In Column F is the year's drawings and using D11 as the Opening balance the formula is simply =D11/C11 where C11 is the Factor I mentioned earlier.
Each year has a different factor and these of course are listed in C8:C53.
Column G is the closing balance which is calculated in G8 as =D8+E8-F8 .
If cell D11 contained the Opening balance (it would be that at age 58) the formula in G11 would be = D11+E11-F11.

In case you want to input some figures to authenticate:
The Factors in column C start at 19.8 (age 55)and reduce down to 15.7 at age 65
Drawings are based on Opening balance(columnD) /Factor (column C)
The earning rate in cell B8 could be set at 8%
Opening balance in cell A4 could be $50,000

Thanks
Pedro
 
Upvote 0
OK we try again.

It would have been so much easier if you would have posted your sheet...

D8: =IF(B8<$A$5,"",IF(B8=$A$5,$A$4,G7))
E8: =IF(ISNUMBER(D8),D8*$B$4,"")
F8: =IF(ISNUMBER(D8),D8/C8,"")
G8: =IF(ISNUMBER(D8),D8+E8-F8,"")


Drag all these dowm
 
Upvote 0
Fairwinds,

Once again thank you very much, and sorry i could not send copy of sheet.

It worked perfectly and leaves blanks, in prior years as I wanted.

You have been most helpful once again.
Thanks
Pedro
 
Upvote 0
To complete the sheet which Fairwinds posted above, which is really working well , I would like the year to appear in Column A against the age shown in column B.

In sheet above the age of 59 is shown and what I want is for the year 2006 to appear in cell A12 with all years thereafter to age 100 shown below it.
In other words if someone aged 60 (at 30/6/2007) inputs 60 in cell A5 this not only triggers the worksheet to place the opening balance in cell C13 it also places 2007 in cell A13.
Subsequent years to be dragged down in need.

Thanks
Pedro
 
Upvote 0
Try:

=IF(D8="","",YEAR(TODAY())+COUNT($D$8:D8))

In A8 and drag down.

Not sure why you want to start with 2006 though...
 
Upvote 0

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