Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Choose a specific calculating formula for a cell

How do I get a cell to look at another cell and when a specific
parameter is met it chooses the correct formula

i.e.

First parameters

A1: cell has the value 07/04/2007 9:45 Available at
B1: cell has the value 07/04/2007 17:00 Due by Time
C1: cell has the value 07/04/2007 14.30 Time delivered

Calculation A for this parameter would be =c1-a1

Second parameters

A1: cell has the value 07/04/2007 12:30 Available at
B1: cell has the value 08/04/2007 12:00 Due by Time
C1: cell has the value 08/04/2007 10.30 Time delivered

Calculation B for this parameter would be =c1-a1-15/24

HOW DO I GET CELL D1 to choose calculation A when the due by time is
17:00 or calculation B when the due by time is 12:00

Thanks
JP

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,886
Default Choose a specific calculating formula for a cell

Hi

=IF(HOUR(B1)=12,C1-A1-15/24,IF(HOUR(B1)=17,C1-A1,""))

The final null "" is for the situation if B1 is neither 12:00 nor 17:00.
Amend to suit.

--
Regards

Roger Govier


wrote in message
oups.com...
How do I get a cell to look at another cell and when a specific
parameter is met it chooses the correct formula

i.e.

First parameters

A1: cell has the value 07/04/2007 9:45 Available at
B1: cell has the value 07/04/2007 17:00 Due by Time
C1: cell has the value 07/04/2007 14.30 Time delivered

Calculation A for this parameter would be =c1-a1

Second parameters

A1: cell has the value 07/04/2007 12:30 Available at
B1: cell has the value 08/04/2007 12:00 Due by Time
C1: cell has the value 08/04/2007 10.30 Time delivered

Calculation B for this parameter would be =c1-a1-15/24

HOW DO I GET CELL D1 to choose calculation A when the due by time is
17:00 or calculation B when the due by time is 12:00

Thanks
JP



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Choose a specific calculating formula for a cell

On May 8, 10:11 am, "Roger Govier"
wrote:
Hi

=IF(HOUR(B1)=12,C1-A1-15/24,IF(HOUR(B1)=17,C1-A1,""))

The final null "" is for the situation if B1 is neither 12:00 nor 17:00.
Amend to suit.

--
Regards

Roger Govier

wrote in message

oups.com...



How do I get a cell to look at another cell and when a specific
parameter is met it chooses the correct formula


i.e.


First parameters


A1: cell has the value 07/04/2007 9:45 Available at
B1: cell has the value 07/04/2007 17:00 Due by Time
C1: cell has the value 07/04/2007 14.30 Time delivered


Calculation A for this parameter would be =c1-a1


Second parameters


A1: cell has the value 07/04/2007 12:30 Available at
B1: cell has the value 08/04/2007 12:00 Due by Time
C1: cell has the value 08/04/2007 10.30 Time delivered


Calculation B for this parameter would be =c1-a1-15/24


HOW DO I GET CELL D1 to choose calculation A when the due by time is
17:00 or calculation B when the due by time is 12:00


Thanks
JP- Hide quoted text -


- Show quoted text -


You are good, thank you very much for your help

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,886
Default Choose a specific calculating formula for a cell

You're very welcome. Thanks for the feedback

--
Regards

Roger Govier


wrote in message
oups.com...
On May 8, 10:11 am, "Roger Govier"
wrote:
Hi

=IF(HOUR(B1)=12,C1-A1-15/24,IF(HOUR(B1)=17,C1-A1,""))

The final null "" is for the situation if B1 is neither 12:00 nor
17:00.
Amend to suit.

--
Regards

Roger Govier

wrote in message

oups.com...



How do I get a cell to look at another cell and when a specific
parameter is met it chooses the correct formula


i.e.


First parameters


A1: cell has the value 07/04/2007 9:45 Available at
B1: cell has the value 07/04/2007 17:00 Due by Time
C1: cell has the value 07/04/2007 14.30 Time delivered


Calculation A for this parameter would be =c1-a1


Second parameters


A1: cell has the value 07/04/2007 12:30 Available at
B1: cell has the value 08/04/2007 12:00 Due by Time
C1: cell has the value 08/04/2007 10.30 Time delivered


Calculation B for this parameter would be =c1-a1-15/24


HOW DO I GET CELL D1 to choose calculation A when the due by time
is
17:00 or calculation B when the due by time is 12:00


Thanks
JP- Hide quoted text -


- Show quoted text -


You are good, thank you very much for your help



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Choose a specific calculating formula for a cell

On May 8, 10:53 am, "Roger Govier"
wrote:
You're very welcome. Thanks for the feedback

--
Regards

Roger Govier

wrote in message

oups.com...



On May 8, 10:11 am, "Roger Govier"
wrote:
Hi


=IF(HOUR(B1)=12,C1-A1-15/24,IF(HOUR(B1)=17,C1-A1,""))


The final null "" is for the situation if B1 is neither 12:00 nor
17:00.
Amend to suit.


--
Regards


Roger Govier


wrote in message


groups.com...


How do I get a cell to look at another cell and when a specific
parameter is met it chooses the correct formula


i.e.


First parameters


A1: cell has the value 07/04/2007 9:45 Available at
B1: cell has the value 07/04/2007 17:00 Due by Time
C1: cell has the value 07/04/2007 14.30 Time delivered


Calculation A for this parameter would be =c1-a1


Second parameters


A1: cell has the value 07/04/2007 12:30 Available at
B1: cell has the value 08/04/2007 12:00 Due by Time
C1: cell has the value 08/04/2007 10.30 Time delivered


Calculation B for this parameter would be =c1-a1-15/24


HOW DO I GET CELL D1 to choose calculation A when the due by time
is
17:00 or calculation B when the due by time is 12:00


Thanks
JP- Hide quoted text -


- Show quoted text -


You are good, thank you very much for your help- Hide quoted text -


- Show quoted text -


Just one more tiny favour, if the hour is not defined by 12 or 17 can
a formula still be achieved.

I see you given me the none "" =IF(HOUR(B1)=12,C1-
A1-15/24,IF(HOUR(B1)=17,C1-A1,""))

Let say I have orders that do not need this, example a difference
service level


A1: cell has the value 07/04/2007 12:30 Available at
B1: cell has the value 07/04/2007 14:30 Due by Time
C1: cell has the value 07/04/2007 13.30 Time delivered





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,886
Default Choose a specific calculating formula for a cell

Hi

The formula I gave would insert a null in the cell, if the value in B1
was neither 17:00 nor 12:00.
With your latest example, 14:30 would come into either category, hence
there would not be a calculation showing in the C column.

Is there some other situation or some other calculation that should
prevail if the time is 14:30?
Can you give a list of the conditions, and what time calculation you
want to show up?

--
Regards

Roger Govier


wrote in message
ups.com...
On May 8, 10:53 am, "Roger Govier"
wrote:
You're very welcome. Thanks for the feedback

--
Regards

Roger Govier

wrote in message

oups.com...



On May 8, 10:11 am, "Roger Govier"
wrote:
Hi


=IF(HOUR(B1)=12,C1-A1-15/24,IF(HOUR(B1)=17,C1-A1,""))


The final null "" is for the situation if B1 is neither 12:00 nor
17:00.
Amend to suit.


--
Regards


Roger Govier


wrote in message


groups.com...


How do I get a cell to look at another cell and when a specific
parameter is met it chooses the correct formula


i.e.


First parameters


A1: cell has the value 07/04/2007 9:45 Available at
B1: cell has the value 07/04/2007 17:00 Due by Time
C1: cell has the value 07/04/2007 14.30 Time delivered


Calculation A for this parameter would be =c1-a1


Second parameters


A1: cell has the value 07/04/2007 12:30 Available at
B1: cell has the value 08/04/2007 12:00 Due by Time
C1: cell has the value 08/04/2007 10.30 Time delivered


Calculation B for this parameter would be =c1-a1-15/24


HOW DO I GET CELL D1 to choose calculation A when the due by
time
is
17:00 or calculation B when the due by time is 12:00


Thanks
JP- Hide quoted text -


- Show quoted text -


You are good, thank you very much for your help- Hide quoted text -


- Show quoted text -


Just one more tiny favour, if the hour is not defined by 12 or 17 can
a formula still be achieved.

I see you given me the none "" =IF(HOUR(B1)=12,C1-
A1-15/24,IF(HOUR(B1)=17,C1-A1,""))

Let say I have orders that do not need this, example a difference
service level


A1: cell has the value 07/04/2007 12:30 Available at
B1: cell has the value 07/04/2007 14:30 Due by Time
C1: cell has the value 07/04/2007 13.30 Time delivered





  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Choose a specific calculating formula for a cell

On May 8, 11:35 am, "Roger Govier"
wrote:
Hi

The formula I gave would insert a null in the cell, if the value in B1
was neither 17:00 nor 12:00.
With your latest example, 14:30 would come into either category, hence
there would not be a calculation showing in the C column.

Is there some other situation or some other calculation that should
prevail if the time is 14:30?
Can you give a list of the conditions, and what time calculation you
want to show up?

--
Regards

Roger Govier

wrote in message

ups.com...



On May 8, 10:53 am, "Roger Govier"
wrote:
You're very welcome. Thanks for the feedback


--
Regards


Roger Govier


wrote in message


groups.com...


On May 8, 10:11 am, "Roger Govier"
wrote:
Hi


=IF(HOUR(B1)=12,C1-A1-15/24,IF(HOUR(B1)=17,C1-A1,""))


The final null "" is for the situation if B1 is neither 12:00 nor
17:00.
Amend to suit.


--
Regards


Roger Govier


wrote in message


groups.com...


How do I get a cell to look at another cell and when a specific
parameter is met it chooses the correct formula


i.e.


First parameters


A1: cell has the value 07/04/2007 9:45 Available at
B1: cell has the value 07/04/2007 17:00 Due by Time
C1: cell has the value 07/04/2007 14.30 Time delivered


Calculation A for this parameter would be =c1-a1


Second parameters


A1: cell has the value 07/04/2007 12:30 Available at
B1: cell has the value 08/04/2007 12:00 Due by Time
C1: cell has the value 08/04/2007 10.30 Time delivered


Calculation B for this parameter would be =c1-a1-15/24


HOW DO I GET CELL D1 to choose calculation A when the due by
time
is
17:00 or calculation B when the due by time is 12:00


Thanks
JP- Hide quoted text -


- Show quoted text -


You are good, thank you very much for your help- Hide quoted text -


- Show quoted text -


Just one more tiny favour, if the hour is not defined by 12 or 17 can
a formula still be achieved.


I see you given me the none "" =IF(HOUR(B1)=12,C1-
A1-15/24,IF(HOUR(B1)=17,C1-A1,""))


Let say I have orders that do not need this, example a difference
service level


A1: cell has the value 07/04/2007 12:30 Available at
B1: cell has the value 07/04/2007 14:30 Due by Time
C1: cell has the value 07/04/2007 13.30 Time delivered- Hide quoted text -


- Show quoted text -


I have figured out the rest of formula required, by removing the none,
it works fine.


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
choose last specific nonblank cell from different worksheets Compassionate Felix Excel Discussion (Misc queries) 1 February 1st 07 07:07 PM
formula to choose a hyperlink from a cell Luong Vinh Tu Excel Worksheet Functions 1 September 25th 06 04:13 AM
calculating a date with the CHOOSE function Jen C Excel Worksheet Functions 4 August 23rd 06 05:40 PM
How to indicate in formula to choose the entire column starting from a specified cell? [email protected] Excel Discussion (Misc queries) 3 June 13th 06 04:25 AM
CALCULATING A FORMULA TO USE A SPECIFIC CELL'S VALUES PaulH-Oz Excel Worksheet Functions 0 March 26th 06 11:50 PM


All times are GMT +1. The time now is 09:43 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"