Google
 
Webnews.only-4-geeks.com
Interesting places
news.only-4-geeks.com Forum Index » Excel

Change to formula

 
Jump to:  
 
bbc1
PostPosted: Tue Jun 03, 2008 11:29 am    Post subject: Change to formula
       
I am using this formula to display the current date on a sheet, I require it
to show the actual day before, what do I need to change.
=IF(AND(B6="",B4<>""),NOW(),IF(AND(B4<>"",B6<>""),B6,""))
 

 
Bob Phillips
PostPosted: Tue Jun 03, 2008 11:47 am    Post subject: Re: Change to formula
       
=IF(AND(B6="",B4<>""),TODAY()-1,IF(AND(B4<>"",B6<>""),B6,""))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"bbc1" <bbc1@discussions.microsoft.com> wrote in message
news:9F920C16-159A-478D-AEC3-81BD6ABC5977@microsoft.com...
Quote:
I am using this formula to display the current date on a sheet, I require
it
to show the actual day before, what do I need to change.
=IF(AND(B6="",B4<>""),NOW(),IF(AND(B4<>"",B6<>""),B6,""))
 

 
edvwvw via OfficeKB.com
PostPosted: Tue Jun 03, 2008 11:51 am    Post subject: Re: Change to formula
       
bbc1 wrote:
Quote:
I am using this formula to display the current date on a sheet, I require it
to show the actual day before, what do I need to change.
=IF(AND(B6="",B4<>""),NOW(),IF(AND(B4<>"",B6<>""),B6,""))


try amending as follows:

Quote:
=IF(AND(B6="",B4<>""),NOW()-1,IF(AND(B4<>"",B6<>""),B6,""))

I presume that you are checking if there is a value in B4 , if so then put
yesterday's date. If there is a value in B6 put in whatever is in B6 .
Finally if B4 B6 are empty then leave blank.

edvwvw

--
Message posted via OfficeKB.com
LINK
 

 
bbc1
PostPosted: Fri Jun 06, 2008 12:05 am    Post subject: Re: Change to formula
       
Thankyou if works

"Bob Phillips" wrote:

Quote:
=IF(AND(B6="",B4<>""),TODAY()-1,IF(AND(B4<>"",B6<>""),B6,""))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"bbc1" <bbc1@discussions.microsoft.com> wrote in message
news:9F920C16-159A-478D-AEC3-81BD6ABC5977@microsoft.com...
I am using this formula to display the current date on a sheet, I require
it
to show the actual day before, what do I need to change.
=IF(AND(B6="",B4<>""),NOW(),IF(AND(B4<>"",B6<>""),B6,""))


 

Page 1 of 1 .:.

Google
 
Webnews.only-4-geeks.com

Windows Update | C++ | C | PHP | JavaScript | Photoshop | Programming | Windows 2000 | Python | Windows XP | Object | Flash | Flash - ActionScript | Paint Shop Pro | Excel | PowerPoint | Access | Word | Windows 98 | Internet Explorer 6.0 | CorelDraw12 | Java | XML | asm x86 | Linux Mandrake | Linux RedHat | Outlook |  | news from newsgroups |_ | s

Web Templates

Awesome Website Templates ©

Kredyty Samochodowe sklep meble artykuły biurowe Sklep zoologiczny Angielski