Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default dates got me stuck

I am trying to set up a worksheet to calculate a storage cost according to
date recieved. Ex. 200 cases recieved before the 16th charged at $0.50 per
case. Recieved o or after the 16th charged at $0.25 per case. I can get it to
work with just numbers but not with a full date. Any help would be
appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,355
Default dates got me stuck

Why not extract the day from the date using

A1: 4/3/2007
A2: =day(A1) results in 3

"Suzuki Steve" wrote:

I am trying to set up a worksheet to calculate a storage cost according to
date recieved. Ex. 200 cases recieved before the 16th charged at $0.50 per
case. Recieved o or after the 16th charged at $0.25 per case. I can get it to
work with just numbers but not with a full date. Any help would be
appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default dates got me stuck

That did it I got it to work here is my formula

=IF(DAY(C20)<16,PRODUCT(D21*0.5),PRODUCT(D21*0.25) )
--
Suzuki Steve


"Barb Reinhardt" wrote:

Why not extract the day from the date using

A1: 4/3/2007
A2: =day(A1) results in 3

"Suzuki Steve" wrote:

I am trying to set up a worksheet to calculate a storage cost according to
date recieved. Ex. 200 cases recieved before the 16th charged at $0.50 per
case. Recieved o or after the 16th charged at $0.25 per case. I can get it to
work with just numbers but not with a full date. Any help would be
appreciated.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default dates got me stuck

Shorter Version

=IF(DAY(C20)<16,0.5,0.25)*D21


"Suzuki Steve" wrote:

That did it I got it to work here is my formula

=IF(DAY(C20)<16,PRODUCT(D21*0.5),PRODUCT(D21*0.25) )
--
Suzuki Steve


"Barb Reinhardt" wrote:

Why not extract the day from the date using

A1: 4/3/2007
A2: =day(A1) results in 3

"Suzuki Steve" wrote:

I am trying to set up a worksheet to calculate a storage cost according to
date recieved. Ex. 200 cases recieved before the 16th charged at $0.50 per
case. Recieved o or after the 16th charged at $0.25 per case. I can get it to
work with just numbers but not with a full date. Any help would be
appreciated.

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
Hmm Still stuck DB Excel Discussion (Misc queries) 6 November 24th 06 11:23 PM
Help, please, I'm stuck Harvest Excel Discussion (Misc queries) 3 August 19th 06 03:28 AM
Stuck... Mike Excel Discussion (Misc queries) 4 May 22nd 06 08:09 PM
Please help, I'm stuck Ben Excel Discussion (Misc queries) 2 March 30th 06 09:50 PM
Stuck with an =IF Mark R... Excel Worksheet Functions 2 January 25th 06 04:41 PM


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