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.

Effective DateEarned/AdvancedTrans Code
07/13/2018Advance
05/01/2016Advance
09/22/2017Earned
10/31/2018Earned

<colgroup><col><col><col></colgroup><tbody>
</tbody>

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

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
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,214,784
Messages
6,121,536
Members
449,037
Latest member
tmmotairi

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