Two Formulas in one cell

slk1987

New Member
Joined
Dec 29, 2022
Messages
8
Office Version
  1. 2021
Platform
  1. Windows
Hello,

I am working on a formula which populates each row with "Client Profile" (C8) if the corresponding year for each row meets the years outlined in the client profile sheet (D8 & E8). If it does not, the cell returns $0. I have accomplished this with:

=IF(AND(D7>='Client Profile'!$D$8,'Income Map'!D7<'Client Profile'!$E$8),'Client Profile'!$C$8,"$0")

I would like to add a component to this which changes the value of the first zero shown to the value in Client Profile C9. If the other formula were not present, it could be as simple as =IF(D11='Client Profile'!D9,'Client Profile'!C9,0) so I essentially need that formula to trump the If/then formula above....

For contect, this spreadsheet reflects an individuals salary for a certain number of years then shows one year of partial salary (client profile c9) in the year they retire (client profile d9)

Any assistance would be much appreciated.
 

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.
Just seeing if anyone has any thoughts on this..no luck so far...
 
Upvote 0
try this:
Excel Formula:
=IF(D11='Client Profile'!D9,'Client Profile'!C9,IF(AND(D7>='Client Profile'!$D$8,'Income Map'!D7<'Client Profile'!$E$8),'Client Profile'!$C$8,"$0"))
All I did was substitute the zero 0 in your secdon equation with all of your first equation
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,177
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