Nested Formula Help

kittymongo

New Member
Joined
Feb 6, 2018
Messages
16
I need a nested formula to pull a specific code type in a column. My transaction code field needs to pull AD, FY or RN = (Advances, First Year or Renewals). If the Earned/Advanced column has Advance, this automatically equals AD. If the Earned/Advanced column has Earned, this needs to be FY or RN depending on the date. Is there a nested formula I can use to pull this in one try? I have a work around using multiple columns but would be easier as one.

If the Effective Date is 365 days or less and the Earned/Advanced is Earned, this needs to read FY. If the Effective Date is over 365 days and the Earned/Advanced is Earned, this needs to read RN.

[TABLE="width: 347"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Effective Date[/TD]
[TD]Earned/Advanced[/TD]
[TD]Trans Code[/TD]
[/TR]
[TR]
[TD]07/13/2018[/TD]
[TD]Advance[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]05/01/2016[/TD]
[TD]Advance[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]09/22/2017[/TD]
[TD]Earned[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10/31/2018[/TD]
[TD]Earned[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

I hope I gave enough information here to figure this out? Please help.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
How about


Excel 2013 32 bit
ABC
1Effective DateEarned/AdvancedTrans Code
213/07/2018AdvanceAD
301/05/2016AdvanceAD
410/08/2017EarnedRN
531/10/2018EarnedFY
Sheet2
Cell Formulas
RangeFormula
C2=IF(B2="Advance","AD",IF(A2TODAY(),-12),"RN","FY"))
 
Upvote 0
Hi,

If you literally mean 365 Days as the cut-of between FY and RN:


Book1
ABC
1Effective DateEarned/AdvancedTrans Code
27/13/2018AdvanceAD
35/1/2016AdvanceAD
49/22/2017EarnedFY
510/31/2018EarnedFY
68/19/2017EarnedRN
78/20/2017EarnedFY
Sheet194
Cell Formulas
RangeFormula
C2=IF(B2="Advance","AD",IF(A2>=TODAY()-365,"FY","RN"))
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0
You're welcome, glad to help.

Just a brief explanation (FYI), you should use Fluff's formula if you want 12 months as cut off between FY and RN.

Use my version Only if you want 365 days. The difference is if current or previous year is a Leap Year, which has 366 days.
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,310
Members
452,634
Latest member
cpostell

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