Sign Up |  Live StatsLive Stats    Articles 34,880| Comments 154,853| Members 17,230, Newest IronSingh25| Online 245
Home Contact
 (Forgotten?): 
    Sikhism

   
                                                                     Your Banner Here!    

 
 
  
  

Logic Error on If formula

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 400 USD, Received: 25 USD (6%)
Please Donate...
Related Topics...
Thread Thread Starter Forum Replies Last Post
Standing Logic On Its Head Aman Singh Sikh Sikhi Sikhism 0 14-Sep-2009 03:21 AM
Logic and creativity Neutral Singh Interfaith Dialogues 0 15-Nov-2004 14:16 PM
What is logic? Neutral Singh Interfaith Dialogues 2 25-Aug-2004 12:32 PM
What are the limitation of formal logic? Neutral Singh Interfaith Dialogues 1 19-Aug-2004 14:30 PM


Tags
logic, error, formula
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:27 AM
Wendy's Avatar Wendy
Guest
 
Posts: n/a
   
   
Logic Error on If formula

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
Hi

I have a formula which should produce yesterdays data if today is
tues,wed,thur or fri, if today is monday it should produce fridays data, and
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/12227-logic-error-on-if-formula.html
sometimes there isn't any data at all.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12227

IIf(Weekday(Date()=1),Date()-3,Date()-1)
this method works if today is monday.

IIf(Weekday(Date()=1),Date()-1,Date()-3)
this method works if its tues, wed, thur or fri

Is it possible to get it working for everyday?

Thanks

Wendy



*








 
Do share your immediate thoughts or reactions on this issue? We value your views! Login Now! or Sign Up Today! to share your views with us.. Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:27 AM
Pieter Wijnen's Avatar Pieter Wijnen
Guest
 
Posts: n/a
   
   
Re: Logic Error on If formula

Parenthises, Parenthises..

IIf(Weekday(Date(),2)=1,Date()-3,Date()-1) ' 2 = to denote Monday as
firstdayofweek = vbMonday


"Wendy" wrote in message
news:UcudnXi3_KlDzD_ZnZ2dnUVZ8tydnZ2d@bt.com...
> Hi
>
> I have a formula which should produce yesterdays data if today is
> tues,wed,thur or fri, if today is monday it should produce fridays data,
> and
> sometimes there isn't any data at all.
>
> IIf(Weekday(Date()=1),Date()-3,Date()-1)
> this method works if today is monday.
>
> IIf(Weekday(Date()=1),Date()-1,Date()-3)
> this method works if its tues, wed, thur or fri
>
> Is it possible to get it working for everyday?
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12227
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12227
>
> Thanks
>
> Wendy
>
>



Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:27 AM
Pieter Wijnen's Avatar Pieter Wijnen
Guest
 
Posts: n/a
   
   
Re: Logic Error on If formula

Parenthises, Parenthises..

IIf(Weekday(Date(),2)=1,Date()-3,Date()-1) ' 2 = to denote Monday as
firstdayofweek = vbMonday


"Wendy" wrote in message
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12227
news:UcudnXi3_KlDzD_ZnZ2dnUVZ8tydnZ2d@bt.com...
> Hi
>
> I have a formula which should produce yesterdays data if today is
> tues,wed,thur or fri, if today is monday it should produce fridays data,
> and
> sometimes there isn't any data at all.
>
> IIf(Weekday(Date()=1),Date()-3,Date()-1)
> this method works if today is monday.
>
> IIf(Weekday(Date()=1),Date()-1,Date()-3)
> this method works if its tues, wed, thur or fri
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12227
>
> Is it possible to get it working for everyday?
>
> Thanks
>
> Wendy
>
>




--
----------------------------------------
I am using the free version of SPAMfighter for private users.
It has removed 4079 spam emails to date.
Paying users do not have this message in their emails.
Get the free SPAMfighter here: http://www.spamfighter.com/len


Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:28 AM
Wendy's Avatar Wendy
Guest
 
Posts: n/a
   
   
Re: Logic Error on If formula

  Donate Today!  
Thanks, I often get muddled up on how many I actually need!

Wendy

"Pieter Wijnen"
..with.norway> wrote in message news:esAz4KqmGHA.2112@TK2MSFTNGP04.phx.gbl...
> Parenthises, Parenthises..
>
> IIf(Weekday(Date(),2)=1,Date()-3,Date()-1) ' 2 = to denote Monday as
> firstdayofweek = vbMonday
>
>
> "Wendy" wrote in message
> news:UcudnXi3_KlDzD_ZnZ2dnUVZ8tydnZ2d@bt.com...
> > Hi
> >
> > I have a formula which should produce yesterdays data if today is
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12227
> > tues,wed,thur or fri, if today is monday it should produce fridays data,
> > and
> > sometimes there isn't any data at all.
> >
> > IIf(Weekday(Date()=1),Date()-3,Date()-1)
> > this method works if today is monday.
> >
> > IIf(Weekday(Date()=1),Date()-1,Date()-3)
> > this method works if its tues, wed, thur or fri
> >
> > Is it possible to get it working for everyday?
> >
> > Thanks
> >
> > Wendy
> >
> >

>
>
>
> --
> ----------------------------------------
> I am using the free version of SPAMfighter for private users.
> It has removed 4079 spam emails to date.
> Paying users do not have this message in their emails.
> Get the free SPAMfighter here: http://www.spamfighter.com/len
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12227
>
>



Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Gurbani Jukebox
Listen to Gurbani while surfing SPN!
» Recent Discussions
sikhism Are Nihangs: A Legacy...
Today 07:15 AM
13 Replies, 251 Views
sikhism Fools Who Wrangle Over...
Today 07:07 AM
914 Replies, 77,870 Views
sikhism Meditate - How, What,...
Today 06:42 AM
40 Replies, 1,134 Views
sikhism Sukhmani Sahib Astpadi 8...
Today 06:38 AM
0 Replies, 3 Views
sikhism Benti Chaupai - Keertan...
Today 04:47 AM
11 Replies, 216 Views
sikhism Is Hindu/Sikh a Valid...
Today 02:20 AM
82 Replies, 1,453 Views
sikhism Undercover Mosque
Today 01:10 AM
0 Replies, 36 Views
sikhism Incidental Happiness...
Yesterday 23:00 PM
0 Replies, 53 Views
sikhism Amazing truth!
Yesterday 22:20 PM
0 Replies, 57 Views
sikhism Black money: Indians...
Yesterday 21:40 PM
1 Replies, 48 Views
sikhism Sikh temple brawl a...
Yesterday 20:33 PM
0 Replies, 55 Views
sikhism Turban Cloth
Yesterday 20:32 PM
3 Replies, 101 Views
sikhism A village where every...
Yesterday 19:12 PM
0 Replies, 44 Views
Why have Sikhs Changed...
Yesterday 18:12 PM
34 Replies, 1,168 Views
Scientists cure cancer,...
By Kamala
Yesterday 14:09 PM
7 Replies, 124 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.2

All times are GMT +6.5. The time now is 07:20 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.61034 seconds with 30 queries