If cell contains specific text, then return a value

ricapan

New Member
Joined
Jan 11, 2023
Messages
14
Office Version
  1. 365
Platform
  1. Windows
Hello all,

I need some help.



I have an small excel with 5 rows and I need a formula that inserts a fix date.



The rows are:

Location-task-status-pending-completed



On the status row I have a drop-down menu with 3 options(new,pending,done)



What I exactly need is to convert this formula into a fix date:



=IF(cell="text", value_to_return, "")



So if in “status row” I choose “done option”, in the “completed row” it shows the date this option was chosen.




Where “value to return” is a fix date for the option chose on status and does not change unless you change on the drop-down menu.

I am attaching a screen shoot.



I thanks you in advace for you help.



Best.
 

Attachments

  • Captura 1.PNG
    Captura 1.PNG
    3.8 KB · Views: 12
We don't close threads. All you need to do is respond saying the solution worked & mark the relevant post as the solution.
Both of which you have already done, so all is good (y)
 
Upvote 0

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Thanks to all that assisted,

one last question if I may.

I have this formula also working,
=if(D3="Pending",NOW(),"")
DateRoomTaskStatusCompletedfollow up
New
Pending13/01/2023 14:53:08
Done

How do I add a second conditions so when is also on status "done" also produce ,NOW() ?
something like
=if(D3="Pending" or "Done",NOW(),"")
Because I try but I am not able to offer 2 conditions on teh formula

thanks in advance
 
Upvote 0
Try

Excel Formula:
=IF(OR(D3="Pending",D3="Done"),NOW(),"")
 
Upvote 0
I tried and gave me error: Wrong number of arguments to IF. Expected between 2 and 3 arguments, but received 1 arguments.
 
Upvote 0
Sorry not getting what you are trying to say

Can you send screenshot or mini sheet of error you are getting.
 
Upvote 0
Are you doing this in Excel or Google Sheets?
 
Upvote 0

Forum statistics

Threads
1,224,891
Messages
6,181,614
Members
453,057
Latest member
LE102024

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