Use VLOOKUP in conjunction with a sum formula

DH888

Board Regular
Joined
Jul 15, 2015
Messages
147
I have a spreadsheet that calculates investment returns continuing to calculate growth after retirement up to 100 years of age. (Not unthinkable for the youth of this day and age)

Start with this so you can see what I'm trying to do.
https://drive.google.com/open?id=0B01KC2Iq-_wKNjVCbm82N0JleWc

3rd sheet (Early Retirement) (Current sheet as you open it (Saved State)) Oops I guess saved state doesn't take online only if you download it.
What I would like to happen in cell M71 is I would like it to sum column M up to 100 years old (Column J)
I'm assuming I could use a vlookup for this but I'm not sure the syntax to use to use both a sum statement and a vlookup in the same formula.

I tried this =SUM(M10:VLOOKUP((100),$J$10:$N70,)
but that's basically all I've got. It doesn't work anyway because what I actually need to do is then take the number from column I (the prior column) and multiply it by "-$M$7" (The annual withdrawal) but as far as I know a lookup has to start with the column you are looking up and can only get values from columns to the right of that. Is there a way I can do the lookup on column J, get the value from column I and multiply it by cell "$M$7"

No that won't work either because that assumes the values in column M are all the same which works if the person's age and starting capital allow the investment to draw the full annual income "M7" to 100 years of age but you can see in the next table that is not always going to be the case so I'm back to a sum formula. I need the lookup to get the 100 from column J and then do a sum of column M up to and including the "Age 100 row" This would solve the problem of including the partial annual withdrawal. The reason I need to do it like this is because there's actually a bunch of places I would like to implement this functionality once it's perfected and I can't just sum the column up to 100 because the 100th year is going to change from rows depending on the age that activates this table. Change cell J9 to 65 to see what I mean. Then CTRL+Z to change it back. It's all linked to other functionality.

Thanks in advance for your help
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,215,029
Messages
6,122,760
Members
449,095
Latest member
m_smith_solihull

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