FORUMLA HELP

lukeeggy

New Member
Joined
Feb 11, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I need a formula that will look at a date and if its between certain dates, mark that with certain tex

EXAMPLE

IF C2 (YELLOW) is equal to or less than P3 (ORANGE) it will fill with TEXT1, IF C2 (YELLOW) is less than or equal to P4 (OTHER YELLOW) but greater than P3 (ORANGE), fill with TEXT 2 IN BLUE and so on all the way down to Sep 21
 

Attachments

  • EXCEL (2).png
    EXCEL (2).png
    219.4 KB · Views: 19

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
I have no idea where you want this formula to go or what "all the way down" means. With a question like this it helps to mock up your file to show what you want the result to look like.

But the formula for the logic you describe here is:

Excel Formula:
=IF(C2<=P3,"TEXT1",IF(C2<=P4,"TEXT 2"))

However, you did not say what result you want if C2 is greater than P3 and greater than P4. In that case the result of this formula will be FALSE.
 
Upvote 0
My take on this
Excel Formula:
=XLOOKUP(C2,P3:P14,L3:L14,"",1)
 
Upvote 0

Forum statistics

Threads
1,215,029
Messages
6,122,755
Members
449,094
Latest member
dsharae57

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