Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default Can I include both AND and OR in the same function?

I'm performing calculations on market data during specific times.
(1000AM to 1130AM and 1330PM to 1500PM)
Can I include both AND and OR in my function, or can it be accomplished with
only one of these items?
If so, could you provide the syntax?
Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Can I include both AND and OR in the same function?

Yes you can use them in the same formula but those are not times they are
text strings so you need to break them up in time values if you need any
sort of calculation done. Maybe you can explain in detail what you want to
do, how you expect a result to look etc?

--


Regards,


Peo Sjoblom

"Dave" wrote in message
...
I'm performing calculations on market data during specific times.
(1000AM to 1130AM and 1330PM to 1500PM)
Can I include both AND and OR in my function, or can it be accomplished
with
only one of these items?
If so, could you provide the syntax?
Thanks in advance.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default Can I include both AND and OR in the same function?

Peo, I download a series of prices based on a certain number of price ticks.
As each series of ticks is completed it also includes the time of completion
in 24hour format. So I have columns with Time, Open, High, Low, Close,
followed by a series of columns of technical indicators for daily periods of
24 hours. I only want to perform additional work the data from the periods
mentioned above so I was using AND and realized using if(and(a1959, a1<1131,
a11259, a1<1501),if(the rest of my calculations in this section,"")"").
This version caused the additional calculations to be performed on all rows
of data rather than only the two periods during the day I was looking for. I
was hoping to be able to insert the OR statement after the logical test
a1<1131 but could not master it. My lack of experience is probably showing
but I would appreciate any help you could provide. Thanks! Dave

"Peo Sjoblom" wrote:

Yes you can use them in the same formula but those are not times they are
text strings so you need to break them up in time values if you need any
sort of calculation done. Maybe you can explain in detail what you want to
do, how you expect a result to look etc?

--


Regards,


Peo Sjoblom

"Dave" wrote in message
...
I'm performing calculations on market data during specific times.
(1000AM to 1130AM and 1330PM to 1500PM)
Can I include both AND and OR in my function, or can it be accomplished
with
only one of these items?
If so, could you provide the syntax?
Thanks in advance.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Can I include both AND and OR in the same function?

It would look like this incorporating OR


=IF(OR(AND(A1959,A1<1131),AND(A11259,A1<1501))," Do This","Do That")

--


Regards,


Peo Sjoblom

"Dave" wrote in message
...
Peo, I download a series of prices based on a certain number of price
ticks.
As each series of ticks is completed it also includes the time of
completion
in 24hour format. So I have columns with Time, Open, High, Low, Close,
followed by a series of columns of technical indicators for daily periods
of
24 hours. I only want to perform additional work the data from the
periods
mentioned above so I was using AND and realized using if(and(a1959,
a1<1131,
a11259, a1<1501),if(the rest of my calculations in this section,"")"").
This version caused the additional calculations to be performed on all
rows
of data rather than only the two periods during the day I was looking for.
I
was hoping to be able to insert the OR statement after the logical test
a1<1131 but could not master it. My lack of experience is probably
showing
but I would appreciate any help you could provide. Thanks! Dave

"Peo Sjoblom" wrote:

Yes you can use them in the same formula but those are not times they are
text strings so you need to break them up in time values if you need any
sort of calculation done. Maybe you can explain in detail what you want
to
do, how you expect a result to look etc?

--


Regards,


Peo Sjoblom

"Dave" wrote in message
...
I'm performing calculations on market data during specific times.
(1000AM to 1130AM and 1330PM to 1500PM)
Can I include both AND and OR in my function, or can it be accomplished
with
only one of these items?
If so, could you provide the syntax?
Thanks in advance.






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 622
Default Can I include both AND and OR in the same function?

On Sep 24, 1:46 pm, Dave wrote:
I'm performing calculations on market data during specific times.
(1000AM to 1130AM and 1330PM to 1500PM)
Can I include both AND and OR in my function, or can it be accomplished with
only one of these items?
If so, could you provide the syntax?
Thanks in advance.


Yes, you can.

OR(AND(A11000,A1<1130),AND(A11330,A1<1500))

Note that I'm just giving you the syntax. I'm assuming you have those
times in other cells, you should use references to them. Otherwise,
the actual numbers for these times are decimals, like 1:30pm is .5625
to Excel.


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default Can I include both AND and OR in the same function?



"Peo Sjoblom" wrote:

It would look like this incorporating OR


=IF(OR(AND(A1959,A1<1131),AND(A11259,A1<1501))," Do This","Do That")

-- Peo

Thank you.....it works as I need it, (in spite of my poor description to you)!
I hope someday I will be expreienced enough to pay forward the help you gave
me today. Thanks Again! Dave Columbus, Ohio


Regards,


Peo Sjoblom

"Dave" wrote in message
...
Peo, I download a series of prices based on a certain number of price
ticks.
As each series of ticks is completed it also includes the time of
completion
in 24hour format. So I have columns with Time, Open, High, Low, Close,
followed by a series of columns of technical indicators for daily periods
of
24 hours. I only want to perform additional work the data from the
periods
mentioned above so I was using AND and realized using if(and(a1959,
a1<1131,
a11259, a1<1501),if(the rest of my calculations in this section,"")"").
This version caused the additional calculations to be performed on all
rows
of data rather than only the two periods during the day I was looking for.
I
was hoping to be able to insert the OR statement after the logical test
a1<1131 but could not master it. My lack of experience is probably
showing
but I would appreciate any help you could provide. Thanks! Dave

"Peo Sjoblom" wrote:

Yes you can use them in the same formula but those are not times they are
text strings so you need to break them up in time values if you need any
sort of calculation done. Maybe you can explain in detail what you want
to
do, how you expect a result to look etc?

--


Regards,


Peo Sjoblom

"Dave" wrote in message
...
I'm performing calculations on market data during specific times.
(1000AM to 1130AM and 1330PM to 1500PM)
Can I include both AND and OR in my function, or can it be accomplished
with
only one of these items?
If so, could you provide the syntax?
Thanks in advance.






  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default Can I include both AND and OR in the same function?

Spiky
When you experienced folks write the syntax and I then see it...it seems so
simple and logical.....but without your initial hand up by showing the
actual syntax to get me started it seems like confetti.
Thanks you!
Dave

"Spiky" wrote:

On Sep 24, 1:46 pm, Dave wrote:
I'm performing calculations on market data during specific times.
(1000AM to 1130AM and 1330PM to 1500PM)
Can I include both AND and OR in my function, or can it be accomplished with
only one of these items?
If so, could you provide the syntax?
Thanks in advance.


Yes, you can.

OR(AND(A11000,A1<1130),AND(A11330,A1<1500))

Note that I'm just giving you the syntax. I'm assuming you have those
times in other cells, you should use references to them. Otherwise,
the actual numbers for these times are decimals, like 1:30pm is .5625
to Excel.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Can I include both AND and OR in the same function?

My pleasure Dave, thanks for the feedback. It feels good helping nice polite
people like yourself.

--


Regards,


Peo Sjoblom

"Dave" wrote in message
...


"Peo Sjoblom" wrote:

It would look like this incorporating OR


=IF(OR(AND(A1959,A1<1131),AND(A11259,A1<1501))," Do This","Do That")

-- Peo

Thank you.....it works as I need it, (in spite of my poor description to
you)!
I hope someday I will be expreienced enough to pay forward the help you
gave
me today. Thanks Again! Dave Columbus, Ohio


Regards,


Peo Sjoblom



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
Date Function to include a day and automatically updated each new Kula Excel Worksheet Functions 1 May 1st 08 06:48 AM
How do I include a supporting help file for a excel function? nmgraham Excel Worksheet Functions 1 February 22nd 06 11:34 PM
how do I include advance payments in the PMT function Razzle Dazzle Excel Worksheet Functions 1 November 3rd 05 07:10 PM
Can SUMIF function include AND function ShaneS Excel Worksheet Functions 1 May 17th 05 03:24 AM
Include Saturday in the WORKDAY function kippi3000 Excel Worksheet Functions 9 December 31st 04 08:21 AM


All times are GMT +1. The time now is 04:19 AM.

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"