#1   Report Post  
Brett
 
Posts: n/a
Default Formula help

How can I have a formula (if a2=day c2=$16.50 if a2=night c2=$25.00) ?
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

What is the definition of day and night. Let's says day is 06:00 to 18:00,
then assuming A2 is just time

=IF(OR(A2<--"06:00:00",A2=--"18:00:00"),25,16.5)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Brett" wrote in message
...
How can I have a formula (if a2=day c2=$16.50 if a2=night c2=$25.00) ?



  #3   Report Post  
Ola
 
Posts: n/a
Default

Hi,

Copy this to C2
=IF(A2="day",16.50,IF(A2="night",25.00,"?"))

Ola

  #4   Report Post  
JE McGimpsey
 
Posts: n/a
Default

If "day" is, say 6:00 am to 5:59 pm, One way:

=CHOOSE(2*MOD(A2+0.25,1)+1,16.5,25)




In article ,
"Brett" wrote:

How can I have a formula (if a2=day c2=$16.50 if a2=night c2=$25.00) ?

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
revert formula insertion to old method Don't be a pain in the ass Setting up and Configuration of Excel 0 January 24th 05 01:49 PM
Relative Indirect Formula Referencing? Damian Excel Worksheet Functions 1 January 7th 05 04:16 AM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM
How do I use Range Names listed in a VLookup table in a formula? Essbasedvlpr32 Excel Worksheet Functions 3 December 15th 04 10:11 PM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM


All times are GMT +1. The time now is 06:36 AM.

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"