PC Review


Reply
Thread Tools Rate Thread

how do i assign a value to a cell containing text

 
 
=?Utf-8?B?QW5pNjM=?=
Guest
Posts: n/a
 
      14th Sep 2006
my worksheet has names and dates when reviews and training is due. I need to
add how many people are up to date and want to add columns totals but can not
assign a value to the cells containing the due dates. Is there a way to
adding how many I have in each column, not counting the ones that are due
shortly? Many thanks
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Tmljb2xh?=
Guest
Posts: n/a
 
      14th Sep 2006
have you tried using the count or countif functions?

"Ani63" wrote:

> my worksheet has names and dates when reviews and training is due. I need to
> add how many people are up to date and want to add columns totals but can not
> assign a value to the cells containing the due dates. Is there a way to
> adding how many I have in each column, not counting the ones that are due
> shortly? Many thanks

 
Reply With Quote
 
=?Utf-8?B?QW50aG9ueSBE?=
Guest
Posts: n/a
 
      14th Sep 2006
One way could be to conditionally count cells that have an entry. For example,
if a1:a9 contains some dates, the total due, excluding those due after say
05/10/2006, would be:

=COUNTIF(A1:A9,">0")-COUNTIF(A1:A9,">05/10/2006")

For names, it would be possible to check if a cell has a value (entry) using
Isblank

HTH
Anthony

"Ani63" wrote:

> my worksheet has names and dates when reviews and training is due. I need to
> add how many people are up to date and want to add columns totals but can not
> assign a value to the cells containing the due dates. Is there a way to
> adding how many I have in each column, not counting the ones that are due
> shortly? Many thanks

 
Reply With Quote
 
Ian
Guest
Posts: n/a
 
      14th Sep 2006
I was trying to answer the OP's query, but couldn't (and still can't) get it
to work dynamically. ie I can't get it to work with TODAY() instead of a
static date in the formula.

If I try:
=COUNTIF(A1:A9,">0")-COUNTIF(A1:A9,"<TODAY()")
I get the total number of entries, not the number of entries before today.
Trying =COUNTIF(A1:A9,">0")-COUNTIF(A1:A9,"=B10") where B10 contains a date
doesn't work either.

Any ideas why this doesn't work?

--
Ian
--
"Anthony D" <(E-Mail Removed)> wrote in message
news:C6FE7D45-B94E-461F-ACD8-(E-Mail Removed)...
> One way could be to conditionally count cells that have an entry. For
> example,
> if a1:a9 contains some dates, the total due, excluding those due after say
> 05/10/2006, would be:
>
> =COUNTIF(A1:A9,">0")-COUNTIF(A1:A9,">05/10/2006")
>
> For names, it would be possible to check if a cell has a value (entry)
> using
> Isblank
>
> HTH
> Anthony
>
> "Ani63" wrote:
>
>> my worksheet has names and dates when reviews and training is due. I need
>> to
>> add how many people are up to date and want to add columns totals but can
>> not
>> assign a value to the cells containing the due dates. Is there a way to
>> adding how many I have in each column, not counting the ones that are due
>> shortly? Many thanks



 
Reply With Quote
 
=?Utf-8?B?QW50aG9ueSBE?=
Guest
Posts: n/a
 
      14th Sep 2006
Hi,
To refer to another cell in the condition, the syntax is a concatenation
using &
e.g.
=COUNTIF(A1:A9,">0")-COUNTIF(A1:A9,">"&B10) where B10 contains a date

(the first part could use counta instead for non-blank cells)

Anthony

"Ian" wrote:

> I was trying to answer the OP's query, but couldn't (and still can't) get it
> to work dynamically. ie I can't get it to work with TODAY() instead of a
> static date in the formula.
>
> If I try:
> =COUNTIF(A1:A9,">0")-COUNTIF(A1:A9,"<TODAY()")
> I get the total number of entries, not the number of entries before today.
> Trying =COUNTIF(A1:A9,">0")-COUNTIF(A1:A9,"=B10") where B10 contains a date
> doesn't work either.
>
> Any ideas why this doesn't work?
>
> --
> Ian
> --
> "Anthony D" <(E-Mail Removed)> wrote in message
> news:C6FE7D45-B94E-461F-ACD8-(E-Mail Removed)...
> > One way could be to conditionally count cells that have an entry. For
> > example,
> > if a1:a9 contains some dates, the total due, excluding those due after say
> > 05/10/2006, would be:
> >
> > =COUNTIF(A1:A9,">0")-COUNTIF(A1:A9,">05/10/2006")
> >
> > For names, it would be possible to check if a cell has a value (entry)
> > using
> > Isblank
> >
> > HTH
> > Anthony
> >
> > "Ani63" wrote:
> >
> >> my worksheet has names and dates when reviews and training is due. I need
> >> to
> >> add how many people are up to date and want to add columns totals but can
> >> not
> >> assign a value to the cells containing the due dates. Is there a way to
> >> adding how many I have in each column, not counting the ones that are due
> >> shortly? Many thanks

>
>
>

 
Reply With Quote
 
Ian
Guest
Posts: n/a
 
      14th Sep 2006
Easy when you know how. Thanks.

I've also figured out that ">"&TODAY() works as the criteria.

For the purposes of the OP, who wanted to ignore dates which were near to
the current date, adding or subtracting a number from the criteria (eg
">"&TODAY()-7 ) would offset the cutoff date with reference to today,
making it a dynamic formula.

--
Ian
--
"Anthony D" <(E-Mail Removed)> wrote in message
news:57628F07-5167-46BF-9989-(E-Mail Removed)...
> Hi,
> To refer to another cell in the condition, the syntax is a concatenation
> using &
> e.g.
> =COUNTIF(A1:A9,">0")-COUNTIF(A1:A9,">"&B10) where B10 contains a date
>
> (the first part could use counta instead for non-blank cells)
>
> Anthony
>
> "Ian" wrote:
>
>> I was trying to answer the OP's query, but couldn't (and still can't) get
>> it
>> to work dynamically. ie I can't get it to work with TODAY() instead of a
>> static date in the formula.
>>
>> If I try:
>> =COUNTIF(A1:A9,">0")-COUNTIF(A1:A9,"<TODAY()")
>> I get the total number of entries, not the number of entries before
>> today.
>> Trying =COUNTIF(A1:A9,">0")-COUNTIF(A1:A9,"=B10") where B10 contains a
>> date
>> doesn't work either.
>>
>> Any ideas why this doesn't work?
>>
>> --
>> Ian
>> --
>> "Anthony D" <(E-Mail Removed)> wrote in message
>> news:C6FE7D45-B94E-461F-ACD8-(E-Mail Removed)...
>> > One way could be to conditionally count cells that have an entry. For
>> > example,
>> > if a1:a9 contains some dates, the total due, excluding those due after
>> > say
>> > 05/10/2006, would be:
>> >
>> > =COUNTIF(A1:A9,">0")-COUNTIF(A1:A9,">05/10/2006")
>> >
>> > For names, it would be possible to check if a cell has a value (entry)
>> > using
>> > Isblank
>> >
>> > HTH
>> > Anthony
>> >
>> > "Ani63" wrote:
>> >
>> >> my worksheet has names and dates when reviews and training is due. I
>> >> need
>> >> to
>> >> add how many people are up to date and want to add columns totals but
>> >> can
>> >> not
>> >> assign a value to the cells containing the due dates. Is there a way
>> >> to
>> >> adding how many I have in each column, not counting the ones that are
>> >> due
>> >> shortly? Many thanks

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Assign macro to text in a cell rather than a control Mack Neff Microsoft Excel Programming 3 6th Jun 2007 04:56 AM
How do I assign a numeric value to text? IE cell = yes then 1 =?Utf-8?B?cnJy?= Microsoft Excel Misc 7 28th Sep 2006 02:01 AM
Assign values to text within a cell =?Utf-8?B?Qm9i?= Microsoft Excel Worksheet Functions 2 7th Jun 2005 09:51 PM
Assign a text to a Cell function Juan R Microsoft Excel Worksheet Functions 5 29th Apr 2004 01:38 AM
Assign value of cell based on text box S. S. Microsoft Excel Programming 5 3rd Dec 2003 05:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:44 AM.