Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / March 2008

Tip: Looking for answers? Try searching our database.

Cell search & reporting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Boenerge - 07 Mar 2008 20:03 GMT
Hi
Is there a formula that would search one cell for a month and then search a
range of other cells for a date and then look below and report into the
formula cell what is reported possibly in a different colour depending on
what is reported.
e.g.

               A              B              C               D            
E              F                G
1                         Date 31…Month December…Year 2007                2               
3               MON    TUE    WED    THU    FRI    SAT    SUN
4               31    1    2    3    4    5    6
5   smith    E    E    DO    S    E    DO    DO
6   jones    DO    N    DO    DO    DO    DO    N
7
8
9
The cell in A9 would search cell B3 to find the month required, then would
search cells A4 to G4 for the correct date e.g. recognise that the required
date is the 3rd of january in cell D4.  It would then look below in jones's
line and report back S in red.
Thanks in advance
Jason
Bernie Deitrick - 08 Mar 2008 18:25 GMT
What do you mean by: "search cell B3 to find the month required"?  And how
do you know that the correct date is January 4?

Bernie

> Hi
> Is there a formula that would search one cell for a month and then search
[quoted text clipped - 22 lines]
> Thanks in advance
> Jason
Boenerge - 08 Mar 2008 20:44 GMT
Hi Bernie,
I mean to search the cell for the month, which in this case is December, The
formula should then pick up the fact that 31 December 2007 is the beginning
of the week, working out cell D4 as the 3rd of January
Thanks
Jason

> What do you mean by: "search cell B3 to find the month required"?  And how
> do you know that the correct date is January 4?
[quoted text clipped - 27 lines]
> > Thanks in advance
> > Jason
Bernie Deitrick - 08 Mar 2008 21:40 GMT
Jason,

The formula

=DATEVALUE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B3,".",""),"Date
",""),"Month",""),"Year",""))

formatted for date, will return the date value found in the string

Date 31.Month December.Year 2007

(If that is truly how it is presented.)

Then you can use that value in a formula like this - let's assume that the
formula is in cell F3:

=DATE(YEAR(F3),MONTH(F3) + IF(DAY(F3)>D4,1,0),D4)

Not sure what you want to do after that...

Bernie

> Hi Bernie,
> I mean to search the cell for the month, which in this case is December,
[quoted text clipped - 40 lines]
>> > Thanks in advance
>> > Jason
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.