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 / Worksheet Functions / September 2007

Tip: Looking for answers? Try searching our database.

How to make a Let statement in Excel?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Blain M - 13 Sep 2007 22:32 GMT
I have a list of dates in a column, that is sorted by name and then date.  
The dates vary, but in assending order for each person.  I have also filtered
the data by determining which dates would be sequential, using a break of two
days - ie-weekend, as sequential periods.  I realize that for two dates, one
a monday and one a wednesday or thursday, this would assue a sequential
period, but I will then subtotal on a count to determine how many days are in
the sequential period to see if it is in agreement.  I am trying to write a
formula using a LET statement similar to

=if(F3=1,Return the value for Duration and then Let Duration=0,Duration+1),

Where Duration is a named range that I am trying to work as a counter to
determine duration and then rest to zero for each new name in a range.  I
used to use Let statements, but that may have been in my Lotus 123 days or
maybe Cobol.
Fred Smith - 14 Sep 2007 03:24 GMT
Excel is not Cobol. One cell's formula cannot modify another cell.

Your choices are to use a macro, which will handle the kind of code you are
talking about, or create  formula in the Duration cell which will do what you
want.

Signature

Regards,
Fred

>I have a list of dates in a column, that is sorted by name and then date.
> The dates vary, but in assending order for each person.  I have also filtered
[quoted text clipped - 11 lines]
> used to use Let statements, but that may have been in my Lotus 123 days or
> maybe Cobol.
Blain M - 14 Sep 2007 17:42 GMT
Thanks Fred.  Now to remember my Macro coding.  New job, much more data
analysis than last one!

> Excel is not Cobol. One cell's formula cannot modify another cell.
>
[quoted text clipped - 17 lines]
> > used to use Let statements, but that may have been in my Lotus 123 days or
> > maybe Cobol.
 
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.