IF PERIOD formula to return certain condition

coding123456

New Member
Joined
Feb 11, 2025
Messages
5
Office Version
  1. 365
Platform
  1. Windows
I have table report looks like the attached

The period End/Start Represents the Month.Year 008.2026

I need a formula where it the Periods does not exceed the Present contract end to take the 8%, if exceeds to take the new rate example

The current formula applied seems neglected the Year. The formula reads the logic of the front 3 digits. How can i make this work?
Present =IFNA(IFS(L$46 <=$B$34,$B$35,L$46>=$C$34,0)*L50,"Please Check Period")
Future =IFNA(IFS($C$34 = "", "",L$46 <=$B$34,0,L$46>=$C$34,$C$35)*L$50,"Please Check Period")
Period formula.png
 
  1. Extracts the year from 008.2026 using RIGHT(L$46,4).
  2. Extracts the month using LEFT(L$46,3), then converts it to two digits using TEXT(LEFT(L$46,3)*1,"00").
  3. Combines them into a YYYYMM numeric format for accurate comparison.
This ensures that 008.2026 is compared as 202608, properly considering both month and year.
 
Upvote 0

Forum statistics

Threads
1,226,850
Messages
6,193,355
Members
453,790
Latest member
yassinosnoo1

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