PC Review


Reply
Thread Tools Rate Thread

compare values in two different columns in a table

 
 
=?Utf-8?B?RGF2ZSBG?=
Guest
Posts: n/a
 
      31st Aug 2006
I have a table which lists costs associated with various projects.

The columns are:

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 With Quote
 
 
 
 
=?Utf-8?B?VG9wcGVycw==?=
Guest
Posts: n/a
 
      31st Aug 2006
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(TODAY()),1),B1:N1,0))>OFFSET(A2,0,MATCH(DATE(YEAR(TODAY()),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 are:
>
> 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 With Quote
 
=?Utf-8?B?RGF2ZSBG?=
Guest
Posts: n/a
 
      31st Aug 2006
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(TODAY()),1),B1:N1,0))>OFFSET(A2,0,MATCH(DATE(YEAR(TODAY()),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 are:
> >
> > 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 With Quote
 
=?Utf-8?B?RGF2ZSBG?=
Guest
Posts: n/a
 
      31st Aug 2006
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(TODAY()),1),B1:N1,0))>OFFSET(A2,0,MATCH(DATE(YEAR(TODAY()),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 are:
> >
> > 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 With Quote
 
=?Utf-8?B?VG9wcGVycw==?=
Guest
Posts: n/a
 
      31st Aug 2006
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(TODAY()),1),B1:N1,0))>OFFSET(A2,0,MATCH(DATE(YEAR(TODAY()),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 are:
> > >
> > > 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compare values of two columns Diane Microsoft Excel Worksheet Functions 5 17th Apr 2008 08:26 PM
Compare values in columns =?Utf-8?B?Y3BldHRh?= Microsoft Excel New Users 5 2nd Apr 2005 03:24 PM
Excel Compare values in columns & display missing values in a new =?Utf-8?B?Y3BldHRh?= Microsoft Excel Misc 1 2nd Apr 2005 05:51 AM
Compare values in two columns Kathy Microsoft Excel Worksheet Functions 2 20th Feb 2004 06:42 PM
Compare values in two columns Rubi Microsoft Excel Worksheet Functions 2 25th Jun 2003 02:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:43 PM.