Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | NSLU2 with UnSLUNG Firmware just died...

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > General IT Discussion

excel & dates using If
Reply
 
Thread Tools
Old 25-10-2007, 19:27   #1
ikthius
Inactive
 
ikthius's Avatar
 
Join Date: Mar 2004
Location: Glasgow, Scotland
Services: anything for a new job
Posts: 4,165
ikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronze
ikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronze
excel & dates using If

hey everyone....

trying to get a small thing working.

what I am trying is to have an if statement working.

I have a column of start dates and a column of end dates.

I want to have a week 1 show if todays date falls in between these dates.

ok it works as a one off, but in a full formula it does not.

A1: 22 oct 07 A2: =sum(A1+7) etc
B1: 28 oct 07 B2: =sum(B1+7) etc
C1: =today() will always stay the same cell

formula:
=if($C$1>=A1&$C$1<=B1,"Week 1","")

ok say I got 10 rows I should only expect one row to show what week it is, each formula will go up in weeks.

why this not work?

ik
ikthius is offline   Reply With Quote
Advertisement
Old 25-10-2007, 19:39   #2
TheNorm
Inactive
 
TheNorm's Avatar
 
Join Date: Jun 2006
Location: Cambridge
Services: Sky TV, VM TV, 20meg bb, tel, and a lobster (but the lobster died).
Posts: 4,349
TheNorm has a nice shiny star
TheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny star
Re: excel & dates using If

Quote:
Originally Posted by ikthius View Post
...=if($C$1>=A1&$C$1<=B1,"Week 1","")...
What is the purpose of "A1&$C$1"?
TheNorm is offline   Reply With Quote
Old 25-10-2007, 19:42   #3
cimt
 
cimt's Avatar
 
Join Date: Mar 2007
Location: Leeds
Age: 36
Posts: 5,255
cimt has a bronzed appealcimt has a bronzed appeal
cimt has a bronzed appealcimt has a bronzed appealcimt has a bronzed appeal
Re: excel & dates using If

Quote:
Originally Posted by TheNorm View Post
What is the purpose of "A1&$C$1"?
I think that is mean to be in between the start date and todays date?
cimt is offline   Reply With Quote
Old 25-10-2007, 19:44   #4
TheNorm
Inactive
 
TheNorm's Avatar
 
Join Date: Jun 2006
Location: Cambridge
Services: Sky TV, VM TV, 20meg bb, tel, and a lobster (but the lobster died).
Posts: 4,349
TheNorm has a nice shiny star
TheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny starTheNorm has a nice shiny star
Re: excel & dates using If

Quote:
Originally Posted by cimt View Post
I think that is mean to be in between the start date and todays date?
Oh! You want to combine two IF statements? How about this:

Code:
=IF($C$1>=A1,IF($C$1<=B1,"Week 1",""),"")
TheNorm is offline   Reply With Quote
Old 25-10-2007, 19:47   #5
ikthius
Inactive
 
ikthius's Avatar
 
Join Date: Mar 2004
Location: Glasgow, Scotland
Services: anything for a new job
Posts: 4,165
ikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronze
ikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronze
Re: excel & dates using If

Quote:
Originally Posted by TheNorm View Post
What is the purpose of "A1&$C$1"?
did I not try and explain it???

ok column A has a row of start dates like monday one week
column B has a row of end dates say sunday

but C1 is today as in the formula =TODAY() so this updates all the time.
so I made this the same cell to be referenced all the time e.g. $C$1

I want to see if cell C1 is between A1 and B1.

ik

thats it, I was trying to combine it with an & operand
ikthius is offline   Reply With Quote
Old 25-10-2007, 22:56   #6
Tricky
Inactive
 
Tricky's Avatar
 
Join Date: Jun 2003
Location: I am house...
Services: $KY+HD - BT Infinity
Posts: 2,284
Tricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful one
Re: excel & dates using If

=if(and(a1>=today(),b1<=today()),true,false)

this what you mean?!
Tricky is offline   Reply With Quote
Reply

Thread Tools

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 Off

Forum Jump


All times are GMT +1. The time now is 15:58.


Server: osmium.zmnt.uk
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum