Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-29-2008, 07:04 PM
David Lipetz
 
Posts: n/a
Simple Logic question?

Using Excel 2003, I'm trying to build a formula that displays a symbol in a
cell to indicate the current date period.

There are four rows of data, each representing a calendar quarter Q1, Q2,
Q3, and Q4. Each row has a cell which indicates the last transaction date
for that period. In the Q1 row, that date is 03/31/08. In the Q2 row, that
date is 04/25/08 as that is the most current data set loaded. Q3 and Q4 date
cells are blank.

The first part of the formula needs to check if there is data by evaluating
if the date cell is blank. If it is blank, then the result should be a blank
(""). If not blank, proceed below.

The next part of the formula determines which quarter we are in based on
todays date.
In the Q1 row, if current month is equal to 1, 2, or 3, then display the
symbol.
In the Q2 row, if current month is equal to 4, 5, or 6, then display the
symbol.
In the Q3 row, if current month is equal to 7, 8, or 9, then display the
symbol.
In the Q4 row, if current month is equal to 10, 11, or 12, then display the
symbol.

The formula below (for Q1) does not work; it evaluates as volatile.
=IF($C43="","",IF(OR(MONTH(TODAY())=1,MONTH(TODAY( ))=2,MONTH(TODAY()=3)),"?",""))

$C43 is the last transaction date cell.

How should this formula be written?

Thanks,
David


Reply With Quote
  #2 (permalink)  
Old 04-29-2008, 07:14 PM
George Nicholson
 
Posts: n/a
Re: Simple Logic question?

>Each row has a cell which indicates the last transaction date for that
>period.


>In the Q1 row, if current month is equal to 1, 2, or 3, then display the
>symbol.


(for Q1) could current month ever be anything but 1,2,3 or ""? (etc for Q2,
Q3, Q4) Can't you just check for ""?

--
HTH,
George


"David Lipetz" <dlipetz@hotmail.com> wrote in message
news:O1ZUrNiqIHA.3804@TK2MSFTNGP02.phx.gbl...
> Using Excel 2003, I'm trying to build a formula that displays a symbol in
> a cell to indicate the current date period.
>
> There are four rows of data, each representing a calendar quarter Q1, Q2,
> Q3, and Q4. Each row has a cell which indicates the last transaction date
> for that period. In the Q1 row, that date is 03/31/08. In the Q2 row, that
> date is 04/25/08 as that is the most current data set loaded. Q3 and Q4
> date cells are blank.
>
> The first part of the formula needs to check if there is data by
> evaluating if the date cell is blank. If it is blank, then the result
> should be a blank (""). If not blank, proceed below.
>
> The next part of the formula determines which quarter we are in based on
> todays date.
> In the Q1 row, if current month is equal to 1, 2, or 3, then display the
> symbol.
> In the Q2 row, if current month is equal to 4, 5, or 6, then display the
> symbol.
> In the Q3 row, if current month is equal to 7, 8, or 9, then display the
> symbol.
> In the Q4 row, if current month is equal to 10, 11, or 12, then display
> the symbol.
>
> The formula below (for Q1) does not work; it evaluates as volatile.
> =IF($C43="","",IF(OR(MONTH(TODAY())=1,MONTH(TODAY( ))=2,MONTH(TODAY()=3)),"?",""))
>
> $C43 is the last transaction date cell.
>
> How should this formula be written?
>
> Thanks,
> David
>



Reply With Quote
  #3 (permalink)  
Old 04-29-2008, 07:24 PM
David Lipetz
 
Posts: n/a
Re: Simple Logic question?

Current month can be 1-12. The four rows (Q1 - Q4) are always on the sheet.
Just checking for "" won't work since the date cell in Q1 will not be blank
but it is currently Q2.


"George Nicholson" <GeorgeNJunk@Junkmsn.com> wrote in message
news:e24mfTiqIHA.2256@TK2MSFTNGP05.phx.gbl...
> >Each row has a cell which indicates the last transaction date for that
> >period.

>
>>In the Q1 row, if current month is equal to 1, 2, or 3, then display the
>>symbol.

>
> (for Q1) could current month ever be anything but 1,2,3 or ""? (etc for
> Q2, Q3, Q4) Can't you just check for ""?
>
> --
> HTH,
> George
>
>
> "David Lipetz" <dlipetz@hotmail.com> wrote in message
> news:O1ZUrNiqIHA.3804@TK2MSFTNGP02.phx.gbl...
>> Using Excel 2003, I'm trying to build a formula that displays a symbol in
>> a cell to indicate the current date period.
>>
>> There are four rows of data, each representing a calendar quarter Q1, Q2,
>> Q3, and Q4. Each row has a cell which indicates the last transaction date
>> for that period. In the Q1 row, that date is 03/31/08. In the Q2 row,
>> that date is 04/25/08 as that is the most current data set loaded. Q3 and
>> Q4 date cells are blank.
>>
>> The first part of the formula needs to check if there is data by
>> evaluating if the date cell is blank. If it is blank, then the result
>> should be a blank (""). If not blank, proceed below.
>>
>> The next part of the formula determines which quarter we are in based on
>> todays date.
>> In the Q1 row, if current month is equal to 1, 2, or 3, then display the
>> symbol.
>> In the Q2 row, if current month is equal to 4, 5, or 6, then display the
>> symbol.
>> In the Q3 row, if current month is equal to 7, 8, or 9, then display the
>> symbol.
>> In the Q4 row, if current month is equal to 10, 11, or 12, then display
>> the symbol.
>>
>> The formula below (for Q1) does not work; it evaluates as volatile.
>> =IF($C43="","",IF(OR(MONTH(TODAY())=1,MONTH(TODAY( ))=2,MONTH(TODAY()=3)),"?",""))
>>
>> $C43 is the last transaction date cell.
>>
>> How should this formula be written?
>>
>> Thanks,
>> David
>>

>
>



Reply With Quote
  #4 (permalink)  
Old 04-29-2008, 08:32 PM
George Nicholson
 
Posts: n/a
Re: Simple Logic question?

Your formula works fine for me, but here's an alternate approach. However,
whatever was preventing your formula from working for you may also be
present in mine.

(for Q1) =IF($C43="","",IF(CEILING(MONTH(TODAY()),3)=3,"?", ""))
for Q2, 3 & 4 lines change =3 to =6, =9, =12 respectively

--
HTH,
George


"David Lipetz" <dlipetz@hotmail.com> wrote in message
news:O1ZUrNiqIHA.3804@TK2MSFTNGP02.phx.gbl...
> Using Excel 2003, I'm trying to build a formula that displays a symbol in
> a cell to indicate the current date period.
>
> There are four rows of data, each representing a calendar quarter Q1, Q2,
> Q3, and Q4. Each row has a cell which indicates the last transaction date
> for that period. In the Q1 row, that date is 03/31/08. In the Q2 row, that
> date is 04/25/08 as that is the most current data set loaded. Q3 and Q4
> date cells are blank.
>
> The first part of the formula needs to check if there is data by
> evaluating if the date cell is blank. If it is blank, then the result
> should be a blank (""). If not blank, proceed below.
>
> The next part of the formula determines which quarter we are in based on
> todays date.
> In the Q1 row, if current month is equal to 1, 2, or 3, then display the
> symbol.
> In the Q2 row, if current month is equal to 4, 5, or 6, then display the
> symbol.
> In the Q3 row, if current month is equal to 7, 8, or 9, then display the
> symbol.
> In the Q4 row, if current month is equal to 10, 11, or 12, then display
> the symbol.
>
> The formula below (for Q1) does not work; it evaluates as volatile.
> =IF($C43="","",IF(OR(MONTH(TODAY())=1,MONTH(TODAY( ))=2,MONTH(TODAY()=3)),"?",""))
>
> $C43 is the last transaction date cell.
>
> How should this formula be written?
>
> Thanks,
> David
>



Reply With Quote
  #5 (permalink)  
Old 04-29-2008, 08:49 PM
David Lipetz
 
Posts: n/a
Re: Simple Logic question?

Thanks George. Your formula worked.

The formula in my OP does not work for Q1. The date cell in that row is
03/31/08 and todays date is 04/28/08, yet the formula still returned the
symbol (an arrow - not a ?).

Both your formula and mine do show "volatile" for the result when evaluating
the formula using the Insert Function button with the cell selected. Not
sure what that means exactly.

Thanks again!

David


"George Nicholson" <GeorgeNJunk@Junkmsn.com> wrote in message
news:%23wVuA$iqIHA.4476@TK2MSFTNGP04.phx.gbl...
> Your formula works fine for me, but here's an alternate approach.
> However, whatever was preventing your formula from working for you may
> also be present in mine.
>
> (for Q1) =IF($C43="","",IF(CEILING(MONTH(TODAY()),3)=3,"?", ""))
> for Q2, 3 & 4 lines change =3 to =6, =9, =12 respectively
>
> --
> HTH,
> George
>
>
> "David Lipetz" <dlipetz@hotmail.com> wrote in message
> news:O1ZUrNiqIHA.3804@TK2MSFTNGP02.phx.gbl...
>> Using Excel 2003, I'm trying to build a formula that displays a symbol in
>> a cell to indicate the current date period.
>>
>> There are four rows of data, each representing a calendar quarter Q1, Q2,
>> Q3, and Q4. Each row has a cell which indicates the last transaction date
>> for that period. In the Q1 row, that date is 03/31/08. In the Q2 row,
>> that date is 04/25/08 as that is the most current data set loaded. Q3 and
>> Q4 date cells are blank.
>>
>> The first part of the formula needs to check if there is data by
>> evaluating if the date cell is blank. If it is blank, then the result
>> should be a blank (""). If not blank, proceed below.
>>
>> The next part of the formula determines which quarter we are in based on
>> todays date.
>> In the Q1 row, if current month is equal to 1, 2, or 3, then display the
>> symbol.
>> In the Q2 row, if current month is equal to 4, 5, or 6, then display the
>> symbol.
>> In the Q3 row, if current month is equal to 7, 8, or 9, then display the
>> symbol.
>> In the Q4 row, if current month is equal to 10, 11, or 12, then display
>> the symbol.
>>
>> The formula below (for Q1) does not work; it evaluates as volatile.
>> =IF($C43="","",IF(OR(MONTH(TODAY())=1,MONTH(TODAY( ))=2,MONTH(TODAY()=3)),"?",""))
>>
>> $C43 is the last transaction date cell.
>>
>> How should this formula be written?
>>
>> Thanks,
>> David
>>

>
>



Reply With Quote
  #6 (permalink)  
Old 04-30-2008, 12:27 AM
Dave Mills
 
Posts: n/a
Re: Simple Logic question?

Use VLookup
Create a table with dates and symbols
dateEndQ1,"Q1"
dateEndQ2,"Q2"
etc
=VLOOKUP(date you need,range col 1,range col 2)

Col 2 values will be returned up to the date in the same row.

You will need to play with the dates a bit. You may need the start date for the
period rather that the end date. For example 1/Apr in row 2 and 1/Jun in row 3
will mean Q2 will be returned from 1/Apr until the day before 1/Jun

I would use
1/Jan/1900,"StartCockUp"
1/Jan,"Q1"
1/Apr,"Q2"
1/Jul,"Q3"
1/Oct,"Q4"
1/Jan/NextYear,"EndCockUp"

then =VLOOKUP(date you need+1,Dates range,symbol range) should return one of the
six strings.



On Tue, 29 Apr 2008 14:04:04 -0400, "David Lipetz" <dlipetz@hotmail.com> wrote:

>Using Excel 2003, I'm trying to build a formula that displays a symbol in a
>cell to indicate the current date period.
>
>There are four rows of data, each representing a calendar quarter Q1, Q2,
>Q3, and Q4. Each row has a cell which indicates the last transaction date
>for that period. In the Q1 row, that date is 03/31/08. In the Q2 row, that
>date is 04/25/08 as that is the most current data set loaded. Q3 and Q4 date
>cells are blank.
>
>The first part of the formula needs to check if there is data by evaluating
>if the date cell is blank. If it is blank, then the result should be a blank
>(""). If not blank, proceed below.
>
>The next part of the formula determines which quarter we are in based on
>todays date.
>In the Q1 row, if current month is equal to 1, 2, or 3, then display the
>symbol.
>In the Q2 row, if current month is equal to 4, 5, or 6, then display the
>symbol.
>In the Q3 row, if current month is equal to 7, 8, or 9, then display the
>symbol.
>In the Q4 row, if current month is equal to 10, 11, or 12, then display the
>symbol.
>
>The formula below (for Q1) does not work; it evaluates as volatile.
>=IF($C43="","",IF(OR(MONTH(TODAY())=1,MONTH(TODAY ())=2,MONTH(TODAY()=3)),"?",""))
>
>$C43 is the last transaction date cell.
>
>How should this formula be written?
>
>Thanks,
>David
>

--
Dave Mills
There are 10 type of people, those that understand binary and those that don't.
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel


Thread Tools Search this Thread
Search this Thread:

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

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



All times are GMT. The time now is 04:41 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Mobile Phones | Equity Release | Mortgage | Homeowner Loans | Loans



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114