How to combine multiple text crtieria to show a text result

jg155

New Member
Joined
Jul 22, 2015
Messages
2
I am looking to show different text results, when there are two or more specific phrases in one column and a date within a certain range in another.

In column C, I have a list of client names.

In column D, cells are labelled either:
  • 1 - urgent focus
  • 2 - key focus
  • 3 - intermediate focus
  • 4 - passive focus
  • 5 - not a focus

In column E, cells include a date in the past in the dd-mmm-yy format. These cells also have conditional formatting.
  • Red is =TODAY()-$E2>60
  • Orange is =AND(TODAY()-$E2>=30, TODAY()-$E2<=60)
  • Green is =AND(TODAY()-$E2>=1, TODAY()-$E2<30)

In column F, I would like to identify whether a client in column C needs:
  • Urgent attention
  • Further attention
  • Some attention
  • No attention required

The criteria I would like to apply is below.

When "1 - urgent focus" and "2 - key focus" are in a D cell and:
  • Where the date is in the red range eg over 60 days ago, column F should read "Urgent attention"
  • Where the date is in the orange range eg between 30 and 60 days ago, column F should read "Further attention"
  • Where the date is in the green range eg in the last 30 days, column F should read "Some attention"

When "3 - intermediate focus" is in a D cell and:
  • Where the date is in the red range eg over 60 days ago, column F should read "Further attention"
  • Where the date is in the orange range eg between 30 and 60 days ago, column F should read "Some attention"
  • Where the date is in the green range eg in the last 30 days, column F should read "Some attention"

When "4 - passive focus" and "5 - not a focus" are in a D cell and:
  • Where the date is in the red range eg over 60 days ago, column F should read "Some attention"
  • Where the date is in the orange range eg between 30 and 60 days ago, column F should read "No attention"
  • Where the date is in the green range eg in the last 30 days, column F should read "No attention"

I hope this makes sense and any advice / ideas would be greatly appreciated.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
try this

Code:
=IF(VALUE(LEFT(D1,1))<3,IF(TODAY()-E1>60,"Urgent attention",IF(TODAY()-E1>=30,"Further attention","Some attention")),IF(VALUE(LEFT(D1,1))=3,IF(TODAY()-E1>60,"Further attention",IF(TODAY()-E1>=30,"Some attention","Some attention")),IF(TODAY()-E1>60,"Some attention",IF(TODAY()-E1>=30,"No attention","No attention"))))
 
Upvote 0

Forum statistics

Threads
1,215,477
Messages
6,125,031
Members
449,205
Latest member
Eggy66

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