I do not use Excel regularly, hence I am unfamiliar with complicated formulas.
I have an Excel 2007 sheet like this:
A B C Name leavefrom leaveupto Mathew 07-Mar-13 25-Mar-13 john 12-Mar-13 15-Mar-13 kerry 18-Apr-13 25-Apr-13 Mikes 27-Jun-13 03-Jul-13
and I have a cell C10 where I am providing a date value. If I am providing 14-mar-13 then it should show the name "john" and "Mathew", if I provide 19-Apr-13 it should show "kerry", etc... Basically, if I provide a date value it should find the names who are on leave on that particular date.
Can someone help me find the correct formula?
If
Name
is in A1 then:in D2 and copied down to suit may serve.
Since you imply you might need to return multiple names, I would suggest the Advanced Filter. Look at HELP for how to set it up. But assume that you enter the date into cell G1. Your Criteria Range might look like (showing the formulas and not the results that show in those cells)
Post back if you need more help
Here's a picture of using the Advanced Filter. Note the options in the Dialog Box to "Copy to another location", and the address to "copy to"
One can develop macro code to automate the updating of the advanced filter, if this is what you want to do. First make sure the filter does what you require.
Here is Macro Code to run after the date has been changed by your user. See if it works for you. You will likely have to modify it for your specific situation.
If it works, you can set up a button to run it. If that also works, you can develop code to trigger it by an appropriate Event, to completely automate things.