Rename values based on multiple criteria

qhont

New Member
Joined
Jul 26, 2022
Messages
4
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
In this data set there are 3 separate policies that are either have 6 month or 12 month terms. I want to define each policy as 'NEW' for the first 12 months - i.e. For ID '01' in E2:E4 it is labeled as 'New' only once and I need a formula to turn it into F2:F4. I only need to change New/Renew for 6 month policies, not 12 month.
 

Attachments

  • test table.PNG
    test table.PNG
    13.7 KB · Views: 5

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
try this
-------------
Book1
ABCDEFG
1IDstart dateend datetermformulanew/renewexpected
211/1/20216/1/20216 monewnewnew
316/3/20211/3/20226 monewrenewalnew
411/3/20226/3/20226 morenewalrenewalrenewal
522/1/20212/1/202212 monewnewnew
622/4/20222/4/202312 morenewalrenewalrenewal
731/1/20216/1/20216 monewnewnew
836/3/20211/3/20226 monewrenewalnew
Sheet1
Cell Formulas
RangeFormula
E2:E8E2=IFS(D2="6 mo",IF(COUNTIF($A$2:$A$8,A2)>2,IF(C2-MINIFS($B$2:$B$8,$A$2:$A$8,A2)>367,"renewal","new"),"new"),D2="12 mo",IF(COUNTIF($A$2:$A$8,A2)>=2,IF(C2-MINIFS($B$2:$B$8,$A$2:$A$8,A2)>365,"renewal","new"),"new"))
 
Upvote 0
Solution
try this
-------------
Book1
ABCDEFG
1IDstart dateend datetermformulanew/renewexpected
211/1/20216/1/20216 monewnewnew
316/3/20211/3/20226 monewrenewalnew
411/3/20226/3/20226 morenewalrenewalrenewal
522/1/20212/1/202212 monewnewnew
622/4/20222/4/202312 morenewalrenewalrenewal
731/1/20216/1/20216 monewnewnew
836/3/20211/3/20226 monewrenewalnew
Sheet1
Cell Formulas
RangeFormula
E2:E8E2=IFS(D2="6 mo",IF(COUNTIF($A$2:$A$8,A2)>2,IF(C2-MINIFS($B$2:$B$8,$A$2:$A$8,A2)>367,"renewal","new"),"new"),D2="12 mo",IF(COUNTIF($A$2:$A$8,A2)>=2,IF(C2-MINIFS($B$2:$B$8,$A$2:$A$8,A2)>365,"renewal","new"),"new"))
Thanks so much ExceLoki!
 
Upvote 0

Forum statistics

Threads
1,216,116
Messages
6,128,933
Members
449,480
Latest member
yesitisasport

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