IFS doesn't recognize value in cell.

Romano_odK

Active Member
Joined
Jun 4, 2020
Messages
379
Office Version
  1. 365
Platform
  1. Windows
Good afternoon,

I am trying to make this work. The Status should be "match" but it doesn't recognize my text in cell E1. I suppose it has to do with what kind of cell this is but I do not know how to solve it.

Thank you for your time,

Romano


Book1
ABCDE
131/12/2021202131/12/31/12/2021
2202231/12/31/12/2022
3Status229931/12/31/12/2299
4no match
Sheet1
Cell Formulas
RangeFormula
C1C1=YEAR(TODAY())
C2C2=C1+1
E1:E3E1=CONCAT(D1,C1)
A4A4=IFS(A1=E1,"match",TRUE,"no match")
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
The little orangish-yellowish triangles you see up in the upper left corner of some cells in columns C and E indicate that those values are entered as Text, and not as Dates/Numbers.
So comparing Text to a Date/Number (A1=E1) will always return false.
You need to convert the values in column E to valid dates/numbers, either converting the data itself, or converting it in the formula, using something like the DATEVALUE function.
 
Upvote 0
Solution
Good afternoon,

I am trying to make this work. The Status should be "match" but it doesn't recognize my text in cell E1. I suppose it has to do with what kind of cell this is but I do not know how to solve it.

Thank you for your time,

Romano


Book1
ABCDE
131/12/2021202131/12/31/12/2021
2202231/12/31/12/2022
3Status229931/12/31/12/2299
4no match
Sheet1
Cell Formulas
RangeFormula
C1C1=YEAR(TODAY())
C2C2=C1+1
E1:E3E1=CONCAT(D1,C1)
A4A4=IFS(A1=E1,"match",TRUE,"no match")
I used the Datevalue and it works perfectly. Thank you for your reply.

Kind regards,

Romano
 
Upvote 0
You are welcome.
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,547
Members
449,089
Latest member
davidcom

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