Validation Text & Multiplication

harrybillyard9

New Member
Joined
Jul 6, 2023
Messages
6
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hi,

I have come across a small issue where i want to add text to the end of the cell that shows the number 2 in the picture attached

i want it to shows Year if the number is 1 but i want it to show years if the number in the cell is greater than 1. IE so it is plural.

Any help much appreciated
 

Attachments

  • Capture.PNG
    Capture.PNG
    7.3 KB · Views: 4

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
What is your exact formula in that cell returning the number 2?
And if any of the other cells have formula using that number, please post those formulas too.
 
Upvote 0
Column C is a date entered by the user, the frequency is just a validation of 1,2,3 which i want to say year or years after, Column E has the following formula =IFERROR(DATE(YEAR(C4)+CHOOSE(D4,"1","2","3"), MONTH(C4), DAY(C4))," ")
 
Upvote 0
So, why not just change the validation in column D from: "1,2,3" to "1 Year, 2 Years, 3 Years"?
 
Last edited:
Upvote 0
If the validation has text in the formula shows an error, my iferror currently stops showing the error

Thanks for your assistance
 
Upvote 0
Change your formula in cell E4 to this:
Excel Formula:
=IFERROR(DATE(YEAR(C4)+LEFT(D4,1),MONTH(C4),DAY(C4)),"")
 
Upvote 0
Solution

Forum statistics

Threads
1,216,117
Messages
6,128,935
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