Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default compare values in two different columns in a table

I have a table which lists costs associated with various projects.

The columns a

June | July | August | ... |December

and the rows are the costs of individual projects over these months.

Our rule is that if JulyCost JuneCost, OK, else go back to project
managers and explain variance.

So, what I would like to do is create some sort of lookup function, in which
I enter today's date, and then Excel compares this month's costs to the
previous month's costs. "IF this month's costs are greater than or equal to
last month's costs, THEN "OK", ELSE "check with project managers" "

Clear?

--
Brevity is the soul of wit.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default compare values in two different columns in a table

Dave,
Assumes Project IDs are in column A, and dates are in row 1,
column B onwards B1 to N1 in my example). Date are in 01/mm/yy (or
mm/01/yyyy) format.
There is no need to enter a date if you want to use TODAY('s).

Put this in desired column and copy down.

=IF(OFFSET(A2,0,MATCH(DATE(YEAR(TODAY()),MONTH(TOD AY()),1),B1:N1,0))OFFSET(A2,0,MATCH(DATE(YEAR(TOD AY()),MONTH(TODAY()),1),B1:N1,0)-1),"OK","Check
with program manager")

HTH


"Dave F" wrote:

I have a table which lists costs associated with various projects.

The columns a

June | July | August | ... |December

and the rows are the costs of individual projects over these months.

Our rule is that if JulyCost JuneCost, OK, else go back to project
managers and explain variance.

So, what I would like to do is create some sort of lookup function, in which
I enter today's date, and then Excel compares this month's costs to the
previous month's costs. "IF this month's costs are greater than or equal to
last month's costs, THEN "OK", ELSE "check with project managers" "

Clear?

--
Brevity is the soul of wit.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default compare values in two different columns in a table

Thanks, looks promising.
--
Brevity is the soul of wit.


"Toppers" wrote:

Dave,
Assumes Project IDs are in column A, and dates are in row 1,
column B onwards B1 to N1 in my example). Date are in 01/mm/yy (or
mm/01/yyyy) format.
There is no need to enter a date if you want to use TODAY('s).

Put this in desired column and copy down.

=IF(OFFSET(A2,0,MATCH(DATE(YEAR(TODAY()),MONTH(TOD AY()),1),B1:N1,0))OFFSET(A2,0,MATCH(DATE(YEAR(TOD AY()),MONTH(TODAY()),1),B1:N1,0)-1),"OK","Check
with program manager")

HTH


"Dave F" wrote:

I have a table which lists costs associated with various projects.

The columns a

June | July | August | ... |December

and the rows are the costs of individual projects over these months.

Our rule is that if JulyCost JuneCost, OK, else go back to project
managers and explain variance.

So, what I would like to do is create some sort of lookup function, in which
I enter today's date, and then Excel compares this month's costs to the
previous month's costs. "IF this month's costs are greater than or equal to
last month's costs, THEN "OK", ELSE "check with project managers" "

Clear?

--
Brevity is the soul of wit.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default compare values in two different columns in a table

OK, the formula works as you have it, however, when I copy down, I get a
series of N/A errors. I think the B1:N1 have to be absolute references.
--
Brevity is the soul of wit.


"Toppers" wrote:

Dave,
Assumes Project IDs are in column A, and dates are in row 1,
column B onwards B1 to N1 in my example). Date are in 01/mm/yy (or
mm/01/yyyy) format.
There is no need to enter a date if you want to use TODAY('s).

Put this in desired column and copy down.

=IF(OFFSET(A2,0,MATCH(DATE(YEAR(TODAY()),MONTH(TOD AY()),1),B1:N1,0))OFFSET(A2,0,MATCH(DATE(YEAR(TOD AY()),MONTH(TODAY()),1),B1:N1,0)-1),"OK","Check
with program manager")

HTH


"Dave F" wrote:

I have a table which lists costs associated with various projects.

The columns a

June | July | August | ... |December

and the rows are the costs of individual projects over these months.

Our rule is that if JulyCost JuneCost, OK, else go back to project
managers and explain variance.

So, what I would like to do is create some sort of lookup function, in which
I enter today's date, and then Excel compares this month's costs to the
previous month's costs. "IF this month's costs are greater than or equal to
last month's costs, THEN "OK", ELSE "check with project managers" "

Clear?

--
Brevity is the soul of wit.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default compare values in two different columns in a table

Dave,
You are correct - mea culpa! Sorry.

"Dave F" wrote:

OK, the formula works as you have it, however, when I copy down, I get a
series of N/A errors. I think the B1:N1 have to be absolute references.
--
Brevity is the soul of wit.


"Toppers" wrote:

Dave,
Assumes Project IDs are in column A, and dates are in row 1,
column B onwards B1 to N1 in my example). Date are in 01/mm/yy (or
mm/01/yyyy) format.
There is no need to enter a date if you want to use TODAY('s).

Put this in desired column and copy down.

=IF(OFFSET(A2,0,MATCH(DATE(YEAR(TODAY()),MONTH(TOD AY()),1),B1:N1,0))OFFSET(A2,0,MATCH(DATE(YEAR(TOD AY()),MONTH(TODAY()),1),B1:N1,0)-1),"OK","Check
with program manager")

HTH


"Dave F" wrote:

I have a table which lists costs associated with various projects.

The columns a

June | July | August | ... |December

and the rows are the costs of individual projects over these months.

Our rule is that if JulyCost JuneCost, OK, else go back to project
managers and explain variance.

So, what I would like to do is create some sort of lookup function, in which
I enter today's date, and then Excel compares this month's costs to the
previous month's costs. "IF this month's costs are greater than or equal to
last month's costs, THEN "OK", ELSE "check with project managers" "

Clear?

--
Brevity is the soul of wit.



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
Using Pivot Table Values mgross Excel Discussion (Misc queries) 1 June 1st 06 09:40 PM
Copy columns values into separate columns Mike_can Excel Discussion (Misc queries) 7 May 27th 06 12:32 AM
Excel Compare values in columns & display missing values in a new cpetta Excel Discussion (Misc queries) 1 April 2nd 05 05:51 AM
Tallying columns based on values of 2 different columns Mctabish Excel Worksheet Functions 1 January 30th 05 10:40 AM


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