Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 129
Default Problem with this formula

Hi,

I have the following formula with which I am trying to calculate if we have
delivered on time. The result keeps giving me Early and I am not sure why.

=IF(N2<J2,"Early",IF(N2=J2,"On Time","Late"))

Colum N is the Agreed promised Date
Column J is the invoice Date which is an array formula that uses Index and
Match

I have tried to see if the array formula is making the calculation screw up
my manually entering the date in column J but still get Early as the answer,
Even though I put a date later than the Agreed Date.

I have checked to make sure Calculation mode is Automatic

Any Ideas on what I have done wrong


Thanks
Winnie

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Problem with this formula

Are the dates in date format. Can you try this formula in a new worksheet.
Enter the dates using Ctrl + semicolon and then edit.

If this post helps click Yes
---------------
Jacob Skaria


"winnie123" wrote:

Hi,

I have the following formula with which I am trying to calculate if we have
delivered on time. The result keeps giving me Early and I am not sure why.

=IF(N2<J2,"Early",IF(N2=J2,"On Time","Late"))

Colum N is the Agreed promised Date
Column J is the invoice Date which is an array formula that uses Index and
Match

I have tried to see if the array formula is making the calculation screw up
my manually entering the date in column J but still get Early as the answer,
Even though I put a date later than the Agreed Date.

I have checked to make sure Calculation mode is Automatic

Any Ideas on what I have done wrong


Thanks
Winnie

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Problem with this formula

Perhaps cell N2 has been formatted as Text, so your entry for Agreed
Date looks like a date but isn't.

Hope this helps.

Pete

On Aug 11, 2:44*pm, winnie123
wrote:
Hi,

I have the following formula with which I am trying to calculate if we have
delivered on time. The result keeps giving me Early and I am not sure why..

=IF(N2<J2,"Early",IF(N2=J2,"On Time","Late"))

Colum N is the Agreed promised Date
Column J is the invoice Date which is an array formula that uses Index and
Match

I have tried to see if the array formula is making the calculation screw up
my manually entering the date in column J but still get Early as the answer,
Even though I put a date later than the Agreed Date.

I have checked to make sure Calculation mode is Automatic

Any Ideas on what I have done wrong

Thanks
Winnie


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 129
Default Problem with this formula

Hi Jacob,

I created a new worksheet and entered the dates with Ctrl + semicolan and
the formula works.

Why is that??

The dates are currently imported from the network system we use. I have set
both columns to date format.

How can I overcome this without having to manually enter the dates?

Thanks for your assistance

"Jacob Skaria" wrote:

Are the dates in date format. Can you try this formula in a new worksheet.
Enter the dates using Ctrl + semicolon and then edit.

If this post helps click Yes
---------------
Jacob Skaria


"winnie123" wrote:

Hi,

I have the following formula with which I am trying to calculate if we have
delivered on time. The result keeps giving me Early and I am not sure why.

=IF(N2<J2,"Early",IF(N2=J2,"On Time","Late"))

Colum N is the Agreed promised Date
Column J is the invoice Date which is an array formula that uses Index and
Match

I have tried to see if the array formula is making the calculation screw up
my manually entering the date in column J but still get Early as the answer,
Even though I put a date later than the Agreed Date.

I have checked to make sure Calculation mode is Automatic

Any Ideas on what I have done wrong


Thanks
Winnie

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Problem with this formula

I am not sure whether this will work..(as desired)

--Can you pre-format the fields to date format...

--OR try the formula..(again depends on the text format of the date text
format)
=IF(DATEVALUE(N2)<DATEVALUE(J2),"Early",IF(N2=J2," On Time","Late"))

If this post helps click Yes
---------------
Jacob Skaria


"winnie123" wrote:

Hi Jacob,

I created a new worksheet and entered the dates with Ctrl + semicolan and
the formula works.

Why is that??

The dates are currently imported from the network system we use. I have set
both columns to date format.

How can I overcome this without having to manually enter the dates?

Thanks for your assistance

"Jacob Skaria" wrote:

Are the dates in date format. Can you try this formula in a new worksheet.
Enter the dates using Ctrl + semicolon and then edit.

If this post helps click Yes
---------------
Jacob Skaria


"winnie123" wrote:

Hi,

I have the following formula with which I am trying to calculate if we have
delivered on time. The result keeps giving me Early and I am not sure why.

=IF(N2<J2,"Early",IF(N2=J2,"On Time","Late"))

Colum N is the Agreed promised Date
Column J is the invoice Date which is an array formula that uses Index and
Match

I have tried to see if the array formula is making the calculation screw up
my manually entering the date in column J but still get Early as the answer,
Even though I put a date later than the Agreed Date.

I have checked to make sure Calculation mode is Automatic

Any Ideas on what I have done wrong


Thanks
Winnie



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Problem with this formula

To check whether N2 and J2 are both real dates, try =ISNUMBER(N2) and
=ISNUMBER(J2)
My suspicion is that =ISNUMBER(J2) will be FALSE (and =ISTEXT(J2) would be
TRUE).
You might get away with changing your formula from
=IF(N2<J2,"Early",IF(N2=J2,"On Time","Late"))
to
=IF(N2<--J2,"Early",IF(N2=--J2,"On Time","Late"))
--
David Biddulph


"winnie123" wrote in message
...
Hi,

I have the following formula with which I am trying to calculate if we
have
delivered on time. The result keeps giving me Early and I am not sure why.

=IF(N2<J2,"Early",IF(N2=J2,"On Time","Late"))

Colum N is the Agreed promised Date
Column J is the invoice Date which is an array formula that uses Index and
Match

I have tried to see if the array formula is making the calculation screw
up
my manually entering the date in column J but still get Early as the
answer,
Even though I put a date later than the Agreed Date.

I have checked to make sure Calculation mode is Automatic

Any Ideas on what I have done wrong


Thanks
Winnie



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 129
Default Problem with this formula

Thanks I think the problem must be with the mask I have created to import the
data.

"Jacob Skaria" wrote:

I am not sure whether this will work..(as desired)

--Can you pre-format the fields to date format...

--OR try the formula..(again depends on the text format of the date text
format)
=IF(DATEVALUE(N2)<DATEVALUE(J2),"Early",IF(N2=J2," On Time","Late"))

If this post helps click Yes
---------------
Jacob Skaria


"winnie123" wrote:

Hi Jacob,

I created a new worksheet and entered the dates with Ctrl + semicolan and
the formula works.

Why is that??

The dates are currently imported from the network system we use. I have set
both columns to date format.

How can I overcome this without having to manually enter the dates?

Thanks for your assistance

"Jacob Skaria" wrote:

Are the dates in date format. Can you try this formula in a new worksheet.
Enter the dates using Ctrl + semicolon and then edit.

If this post helps click Yes
---------------
Jacob Skaria


"winnie123" wrote:

Hi,

I have the following formula with which I am trying to calculate if we have
delivered on time. The result keeps giving me Early and I am not sure why.

=IF(N2<J2,"Early",IF(N2=J2,"On Time","Late"))

Colum N is the Agreed promised Date
Column J is the invoice Date which is an array formula that uses Index and
Match

I have tried to see if the array formula is making the calculation screw up
my manually entering the date in column J but still get Early as the answer,
Even though I put a date later than the Agreed Date.

I have checked to make sure Calculation mode is Automatic

Any Ideas on what I have done wrong


Thanks
Winnie

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 129
Default Problem with this formula

Pete,

I thinks its the mask I have created to import the records. The date is set
to Charachter and not date format. So will redo my mask and then hopefully it
will work

Thanks

"Pete_UK" wrote:

Perhaps cell N2 has been formatted as Text, so your entry for Agreed
Date looks like a date but isn't.

Hope this helps.

Pete

On Aug 11, 2:44 pm, winnie123
wrote:
Hi,

I have the following formula with which I am trying to calculate if we have
delivered on time. The result keeps giving me Early and I am not sure why..

=IF(N2<J2,"Early",IF(N2=J2,"On Time","Late"))

Colum N is the Agreed promised Date
Column J is the invoice Date which is an array formula that uses Index and
Match

I have tried to see if the array formula is making the calculation screw up
my manually entering the date in column J but still get Early as the answer,
Even though I put a date later than the Agreed Date.

I have checked to make sure Calculation mode is Automatic

Any Ideas on what I have done wrong

Thanks
Winnie



  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Problem with this formula

On Tue, 11 Aug 2009 06:44:06 -0700, winnie123
wrote:

Hi,

I have the following formula with which I am trying to calculate if we have
delivered on time. The result keeps giving me Early and I am not sure why.

=IF(N2<J2,"Early",IF(N2=J2,"On Time","Late"))

Colum N is the Agreed promised Date
Column J is the invoice Date which is an array formula that uses Index and
Match

I have tried to see if the array formula is making the calculation screw up
my manually entering the date in column J but still get Early as the answer,
Even though I put a date later than the Agreed Date.

I have checked to make sure Calculation mode is Automatic

Any Ideas on what I have done wrong


Thanks
Winnie


Most likely a problem with your data.

It may look like a date, but really be text. You can tell by
=ISTEXT(cell_ref). A date should -- FALSE
--ron
  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Problem with this formula

Changing the *format* of a cell doesn't change its content, but merely
affects the way a number is *displayed*. If you've got text instead of a
number, changing format will have no effect.
If you need to change values from text to a real date, you will see a number
of suggestions in the archives of this group.

You might try Data/ Text to Columns/ and specify the relevant date format
when you get to the last stage of the wizard.
Another option is to copy a cell containing zer, and using Edit/ Paste
Special/ Add (or copy a 1, and use Edit/ Paste Special/ Multiply).

In the short term, though, if J2 is text have you tried my suggestion of
=IF(N2<--J2,... ?
--
David Biddulph

"winnie123" wrote in message
...
Hi Jacob,

I created a new worksheet and entered the dates with Ctrl + semicolan and
the formula works.

Why is that??

The dates are currently imported from the network system we use. I have
set
both columns to date format.

How can I overcome this without having to manually enter the dates?

Thanks for your assistance

"Jacob Skaria" wrote:

Are the dates in date format. Can you try this formula in a new
worksheet.
Enter the dates using Ctrl + semicolon and then edit.

If this post helps click Yes
---------------
Jacob Skaria


"winnie123" wrote:

Hi,

I have the following formula with which I am trying to calculate if we
have
delivered on time. The result keeps giving me Early and I am not sure
why.

=IF(N2<J2,"Early",IF(N2=J2,"On Time","Late"))

Colum N is the Agreed promised Date
Column J is the invoice Date which is an array formula that uses Index
and
Match

I have tried to see if the array formula is making the calculation
screw up
my manually entering the date in column J but still get Early as the
answer,
Even though I put a date later than the Agreed Date.

I have checked to make sure Calculation mode is Automatic

Any Ideas on what I have done wrong


Thanks
Winnie





  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Problem with this formula

Fine. If that doesnt work let us know the date format..If the incoming date
format is all numerics with separators try =IF(N2+0)<(J2+0)...

If this post helps click Yes
---------------
Jacob Skaria


"winnie123" wrote:

Thanks I think the problem must be with the mask I have created to import the
data.

"Jacob Skaria" wrote:

I am not sure whether this will work..(as desired)

--Can you pre-format the fields to date format...

--OR try the formula..(again depends on the text format of the date text
format)
=IF(DATEVALUE(N2)<DATEVALUE(J2),"Early",IF(N2=J2," On Time","Late"))

If this post helps click Yes
---------------
Jacob Skaria


"winnie123" wrote:

Hi Jacob,

I created a new worksheet and entered the dates with Ctrl + semicolan and
the formula works.

Why is that??

The dates are currently imported from the network system we use. I have set
both columns to date format.

How can I overcome this without having to manually enter the dates?

Thanks for your assistance

"Jacob Skaria" wrote:

Are the dates in date format. Can you try this formula in a new worksheet.
Enter the dates using Ctrl + semicolon and then edit.

If this post helps click Yes
---------------
Jacob Skaria


"winnie123" wrote:

Hi,

I have the following formula with which I am trying to calculate if we have
delivered on time. The result keeps giving me Early and I am not sure why.

=IF(N2<J2,"Early",IF(N2=J2,"On Time","Late"))

Colum N is the Agreed promised Date
Column J is the invoice Date which is an array formula that uses Index and
Match

I have tried to see if the array formula is making the calculation screw up
my manually entering the date in column J but still get Early as the answer,
Even though I put a date later than the Agreed Date.

I have checked to make sure Calculation mode is Automatic

Any Ideas on what I have done wrong


Thanks
Winnie

  #12   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 129
Default Problem with this formula

Your suggestion worked by putting -- in front of the cell.

I have also redone my import mask.

Thank you to everyone for your contributions, this has been annoying me all
day.



"David Biddulph" wrote:

To check whether N2 and J2 are both real dates, try =ISNUMBER(N2) and
=ISNUMBER(J2)
My suspicion is that =ISNUMBER(J2) will be FALSE (and =ISTEXT(J2) would be
TRUE).
You might get away with changing your formula from
=IF(N2<J2,"Early",IF(N2=J2,"On Time","Late"))
to
=IF(N2<--J2,"Early",IF(N2=--J2,"On Time","Late"))
--
David Biddulph


"winnie123" wrote in message
...
Hi,

I have the following formula with which I am trying to calculate if we
have
delivered on time. The result keeps giving me Early and I am not sure why.

=IF(N2<J2,"Early",IF(N2=J2,"On Time","Late"))

Colum N is the Agreed promised Date
Column J is the invoice Date which is an array formula that uses Index and
Match

I have tried to see if the array formula is making the calculation screw
up
my manually entering the date in column J but still get Early as the
answer,
Even though I put a date later than the Agreed Date.

I have checked to make sure Calculation mode is Automatic

Any Ideas on what I have done wrong


Thanks
Winnie




  #13   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Problem with this formula

You're welcome, Winnie - thanks for feeding back.

Pete

On Aug 11, 3:44*pm, winnie123
wrote:
Pete,

I thinks its the mask I have created to import the records. The date is set
to Charachter and not date format. So will redo my mask and then hopefully it
will work

Thanks



"Pete_UK" wrote:
Perhaps cell N2 has been formatted as Text, so your entry for Agreed
Date looks like a date but isn't.


Hope this helps.


Pete


On Aug 11, 2:44 pm, winnie123
wrote:
Hi,


I have the following formula with which I am trying to calculate if we have
delivered on time. The result keeps giving me Early and I am not sure why..


=IF(N2<J2,"Early",IF(N2=J2,"On Time","Late"))


Colum N is the Agreed promised Date
Column J is the invoice Date which is an array formula that uses Index and
Match


I have tried to see if the array formula is making the calculation screw up
my manually entering the date in column J but still get Early as the answer,
Even though I put a date later than the Agreed Date.


I have checked to make sure Calculation mode is Automatic


Any Ideas on what I have done wrong


Thanks
Winnie- Hide quoted text -


- Show quoted text -


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula problem Andrew Mackenzie Excel Discussion (Misc queries) 3 December 8th 08 12:33 PM
IF/AND Formula Problem CT Excel Worksheet Functions 9 June 11th 08 02:22 AM
Formula Problem Dave Excel Discussion (Misc queries) 2 December 11th 07 07:49 PM
Formula Problem Secret Squirrel Excel Discussion (Misc queries) 6 March 28th 07 02:55 AM
formula problem [email protected] uk Excel Worksheet Functions 2 August 14th 06 02:43 AM


All times are GMT +1. The time now is 10:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"