Dear All,
Is it possible to treat text as a number in excel?
For example while using =if formula can I use Days,Months or other text as number.
Dear All,
Is it possible to treat text as a number in excel?
For example while using =if formula can I use Days,Months or other text as number.
Last edited by kskhan; 06-11-2016 at 09:13 AM.
Provide a better explanation and example. How can the word "Days" be used as a number??
Ben Van Johnson
Agree that you will find more help if you provide some samples of what you are dealing with.
And depending on how your cell is formatted, Days,Months may in fact already be numbers, if they are real dates
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
Thanks for the reply.
Actually I'm preparing a file of daily task against the day using =TOday()formula, Then I have 6 cells with the tasks. Now what I want is to have that specific task on the day using =if(A1=Sunday,Task,"") but getting error on this.
Please find the attached screenshot of the texts & formula I'm trying to use.
I hope that you'll be able to help me now
Regards,
Kashif
=TODAY returns the date as a number, so you need to get the weekday from it.
=IF(WEEKDAY(A1)=7,"",
Sunday =1, Saturday =7.
If Saturday was actually text then you would have needed to enclose the test string in double inverted commas, =IF(A1="Saturday",""
Last edited by jason.b75; 06-11-2016 at 04:59 AM.
Hi
Try something this assuming your datevalue in A1
Formula:Please Login or Register to view this content.
☚ Click ★ just below left if it helps, Boo?ath?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks