#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default AND function?

This might take a while to explain: I am not all that familiar with
excel.

In column A have a number (representing an area- from 1-14). In column
D, I have the time. In column E, I have a code. I want to find out how
many times any code is found with another code in the same area in the
space of 5-10 minutes (=5 mins, =<10 mins). There can only be a
maximum of two codes in an area at one time. If two codes are found in
that time range, then I want to concatenate the codes.

I previously did this in column F for =<5 mins (which is 0.00347222222
expressed in days).

in column F I typed:
=IF(AND(D3-D2<=0.00347222222,A2=A3,E2<E3),IF(E2<E3,CONCATENA TE(E2,E3),CONCATENATE(E3,E2)),)

This worked fine!

For between =5 mins and =<10 mins (expressed in days) I typed:
=IF(AND(D3-D2=0.00347222222,<=0.00694444444,A2=A3,E2<E3),IF (E2<E3,CONCATENATE(E2,E3),CONCATENATE(E3,E2)),)

It doesn't work! Why? What do you suggest?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default AND function?

you forgot to type what was =< 10 mins.
This should work for you:
=IF(AND(D3-D2=0.00347222222,D3-D2<=0.00694444444,A2=A3,E2<E3),IF(E2<E3,CONCATE*N ATE(E2,E3),CONCATENATE(E3,E2)),)

fish wrote:
This might take a while to explain: I am not all that familiar with
excel.

In column A have a number (representing an area- from 1-14). In column
D, I have the time. In column E, I have a code. I want to find out how
many times any code is found with another code in the same area in the
space of 5-10 minutes (=5 mins, =<10 mins). There can only be a
maximum of two codes in an area at one time. If two codes are found in
that time range, then I want to concatenate the codes.

I previously did this in column F for =<5 mins (which is 0.00347222222
expressed in days).

in column F I typed:
=IF(AND(D3-D2<=0.00347222222,A2=A3,E2<E3),IF(E2<E3,CONCATENA TE(E2,E3),CONCATENATE(E3,E2)),)

This worked fine!

For between =5 mins and =<10 mins (expressed in days) I typed:
=IF(AND(D3-D2=0.00347222222,<=0.00694444444,A2=A3,E2<E3),IF (E2<E3,CONCATENATE(E2,E3),CONCATENATE(E3,E2)),)

It doesn't work! Why? What do you suggest?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default AND function?

instead of computing the decimal for 5 minutes, you could use
TIMEVALUE("00:05:00") - it would be easier to make changes later.


"fish" wrote:

This might take a while to explain: I am not all that familiar with
excel.

In column A have a number (representing an area- from 1-14). In column
D, I have the time. In column E, I have a code. I want to find out how
many times any code is found with another code in the same area in the
space of 5-10 minutes (=5 mins, =<10 mins). There can only be a
maximum of two codes in an area at one time. If two codes are found in
that time range, then I want to concatenate the codes.

I previously did this in column F for =<5 mins (which is 0.00347222222
expressed in days).

in column F I typed:
=IF(AND(D3-D2<=0.00347222222,A2=A3,E2<E3),IF(E2<E3,CONCATENA TE(E2,E3),CONCATENATE(E3,E2)),)

This worked fine!

For between =5 mins and =<10 mins (expressed in days) I typed:
=IF(AND(D3-D2=0.00347222222,<=0.00694444444,A2=A3,E2<E3),IF (E2<E3,CONCATENATE(E2,E3),CONCATENATE(E3,E2)),)

It doesn't work! Why? What do you suggest?


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default AND function?

I have tried:
=IF(AND(D3-D2=0.00347222222,D3-D2<=0.00694444444,A2=A3,E2<E3),IF(E2<E3,CONCATENA TE(E2,E3),CONCATENATE(E3,E2)),)

AND I have tried:

=IF(AND(D3-D2=TIMEVALUE("00:05:00"),D3-D2<=TIMEVALUE("00:10:00"),A2=A3,E2<E3),IF(E2<E3,C ONCATENATE(E2,E3),CONCATENATE(E3,E2)),)

It still doesn't work. Just a zero appears where it is supposed to
concatenate. I don't get it.

JMB wrote:
instead of computing the decimal for 5 minutes, you could use
TIMEVALUE("00:05:00") - it would be easier to make changes later.


"fish" wrote:

This might take a while to explain: I am not all that familiar with
excel.

In column A have a number (representing an area- from 1-14). In column
D, I have the time. In column E, I have a code. I want to find out how
many times any code is found with another code in the same area in the
space of 5-10 minutes (=5 mins, =<10 mins). There can only be a
maximum of two codes in an area at one time. If two codes are found in
that time range, then I want to concatenate the codes.

I previously did this in column F for =<5 mins (which is 0.00347222222
expressed in days).

in column F I typed:
=IF(AND(D3-D2<=0.00347222222,A2=A3,E2<E3),IF(E2<E3,CONCATENA TE(E2,E3),CONCATENATE(E3,E2)),)

This worked fine!

For between =5 mins and =<10 mins (expressed in days) I typed:
=IF(AND(D3-D2=0.00347222222,<=0.00694444444,A2=A3,E2<E3),IF (E2<E3,CONCATENATE(E2,E3),CONCATENATE(E3,E2)),)

It doesn't work! Why? What do you suggest?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default AND function?

I have just tried both of the formulas again, and they both work- I
think it might be taking a while to update the spreadsheet.
Thanks a lot to the two people who helped me solve this problem.

fish wrote:
I have tried:
=IF(AND(D3-D2=0.00347222222,D3-D2<=0.00694444444,A2=A3,E2<E3),IF(E2<E3,CONCATENA TE(E2,E3),CONCATENATE(E3,E2)),)

AND I have tried:

=IF(AND(D3-D2=TIMEVALUE("00:05:00"),D3-D2<=TIMEVALUE("00:10:00"),A2=A3,E2<E3),IF(E2<E3,C ONCATENATE(E2,E3),CONCATENATE(E3,E2)),)

It still doesn't work. Just a zero appears where it is supposed to
concatenate. I don't get it.

JMB wrote:
instead of computing the decimal for 5 minutes, you could use
TIMEVALUE("00:05:00") - it would be easier to make changes later.


"fish" wrote:

This might take a while to explain: I am not all that familiar with
excel.

In column A have a number (representing an area- from 1-14). In column
D, I have the time. In column E, I have a code. I want to find out how
many times any code is found with another code in the same area in the
space of 5-10 minutes (=5 mins, =<10 mins). There can only be a
maximum of two codes in an area at one time. If two codes are found in
that time range, then I want to concatenate the codes.

I previously did this in column F for =<5 mins (which is 0.00347222222
expressed in days).

in column F I typed:
=IF(AND(D3-D2<=0.00347222222,A2=A3,E2<E3),IF(E2<E3,CONCATENA TE(E2,E3),CONCATENATE(E3,E2)),)

This worked fine!

For between =5 mins and =<10 mins (expressed in days) I typed:
=IF(AND(D3-D2=0.00347222222,<=0.00694444444,A2=A3,E2<E3),IF (E2<E3,CONCATENATE(E2,E3),CONCATENATE(E3,E2)),)

It doesn't work! Why? What do you suggest?



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
Need some comments on my Utility_Move class module. jchen Excel Worksheet Functions 0 August 21st 06 07:05 PM
Creating a Custom Excel Function to Calculate Gini Coefficients [email protected] Excel Worksheet Functions 3 February 21st 06 10:15 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


All times are GMT +1. The time now is 07:29 PM.

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

About Us

"It's about Microsoft Excel"