Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 69
Default compare date and perfom calculation

I have 4 columns of data. Column 1 is "daily", Column 2 is the daily value,
Column 3 is "monthly", column 4 is the monthly factor.

Example:
01/01/2009 300 01/2009 0.30
01/02/2009 240 02/2009 0.20
.... ... 03/2009 0.45
02/01/2009 340
... ...
03/01/2009 450

I need help with a formula that checks the "Month" and "year" in column 1
and 3. If true then multiply column 2 and 3.

All of Jan/09 days will be multiplied by .30, all of Feb/09 will be
multiplied by .20, .....

Thanks!!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 793
Default compare date and perfom calculation

Use this in E (assuming Col C is TEXT in the format mm/yyyy

=VLOOKUP(TEXT(A1,"mm/yyyy"),C:D,2,FALSE)*B1
and copy down

"Mona" wrote:

I have 4 columns of data. Column 1 is "daily", Column 2 is the daily value,
Column 3 is "monthly", column 4 is the monthly factor.

Example:
01/01/2009 300 01/2009 0.30
01/02/2009 240 02/2009 0.20
... ... 03/2009 0.45
02/01/2009 340
.. ...
03/01/2009 450

I need help with a formula that checks the "Month" and "year" in column 1
and 3. If true then multiply column 2 and 3.

All of Jan/09 days will be multiplied by .30, all of Feb/09 will be
multiplied by .20, .....

Thanks!!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 69
Default compare date and perfom calculation

thank you. I adjusted the monthly date to be text mm/yyyy and works great!

"Sheeloo" wrote:

Use this in E (assuming Col C is TEXT in the format mm/yyyy

=VLOOKUP(TEXT(A1,"mm/yyyy"),C:D,2,FALSE)*B1
and copy down

"Mona" wrote:

I have 4 columns of data. Column 1 is "daily", Column 2 is the daily value,
Column 3 is "monthly", column 4 is the monthly factor.

Example:
01/01/2009 300 01/2009 0.30
01/02/2009 240 02/2009 0.20
... ... 03/2009 0.45
02/01/2009 340
.. ...
03/01/2009 450

I need help with a formula that checks the "Month" and "year" in column 1
and 3. If true then multiply column 2 and 3.

All of Jan/09 days will be multiplied by .30, all of Feb/09 will be
multiplied by .20, .....

Thanks!!

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 Calculation (from entered date / 1yr later in next field) ajaminb Excel Worksheet Functions 6 September 29th 08 02:11 PM
End Date Calculation (adding a start date duration) Silena K-K Excel Discussion (Misc queries) 5 January 25th 08 04:27 PM
compare date to various date ranges and sum value al Excel Worksheet Functions 2 January 10th 07 10:17 AM
How do I perfom a character count in a single cell in Excel? RonNette72791 New Users to Excel 1 August 11th 06 05:49 PM
Tricky Date calculation: How to calculate a future date [email protected] Excel Discussion (Misc queries) 9 August 11th 06 04:24 AM


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