Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Alison
 
Posts: n/a
Default How to make =MAX(IF incorporate "less than"?

I am entering project information into a template, which is then saved to a
database. In this template, I use project numbers, and as I open new
projects those numbers get higher.

The following formula references a cell in the template, B19, which is a
description, and then looks in the database for the highest matching project
number that also has that description in its record. Column D is the
description and Column C is the project number. It gives me back a previous
project number that I can use for reference information (the most recent
similar project).

=MAX(IF('[Database.xls]Sheet1'!$D1:$D1000=B19,'[Database.xls]Sheet1'!$C1:$C1
000))

The MAX part gives me the highest match and the IF part makes it look only
for projects that match the description I tell it.

I thought this was the answer to my problem, and it works as I go along in
ascending order, but if I then later open up an old job from the template, it
automatically updates it with new information that isn't valid for the time
that this job is opened. Instead, I need for it to keep the information that
was accurate only at the time I created the project.

This means I need to incorporate into the formula a way for it to tell me
what the MAX is BUT less than than the project's own project number, which is
in cell B4.

CAN THIS BE DONE? Thanks!
  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Add the appropriate file and sheet names.

Array entered:

A19 = project number

=MAX(IF((D1:D1000=B19)*(C1:C1000<A19),C1:C1000))

Biff

"Alison" wrote in message
...
I am entering project information into a template, which is then saved to a
database. In this template, I use project numbers, and as I open new
projects those numbers get higher.

The following formula references a cell in the template, B19, which is a
description, and then looks in the database for the highest matching
project
number that also has that description in its record. Column D is the
description and Column C is the project number. It gives me back a
previous
project number that I can use for reference information (the most recent
similar project).

=MAX(IF('[Database.xls]Sheet1'!$D1:$D1000=B19,'[Database.xls]Sheet1'!$C1:$C1
000))

The MAX part gives me the highest match and the IF part makes it look only
for projects that match the description I tell it.

I thought this was the answer to my problem, and it works as I go along in
ascending order, but if I then later open up an old job from the template,
it
automatically updates it with new information that isn't valid for the
time
that this job is opened. Instead, I need for it to keep the information
that
was accurate only at the time I created the project.

This means I need to incorporate into the formula a way for it to tell me
what the MAX is BUT less than than the project's own project number, which
is
in cell B4.

CAN THIS BE DONE? Thanks!



  #3   Report Post  
Alison
 
Posts: n/a
Default

You are brilliant! Thank you!

"Biff" wrote:

Hi!

Add the appropriate file and sheet names.

Array entered:

A19 = project number

=MAX(IF((D1:D1000=B19)*(C1:C1000<A19),C1:C1000))

Biff

"Alison" wrote in message
...
I am entering project information into a template, which is then saved to a
database. In this template, I use project numbers, and as I open new
projects those numbers get higher.

The following formula references a cell in the template, B19, which is a
description, and then looks in the database for the highest matching
project
number that also has that description in its record. Column D is the
description and Column C is the project number. It gives me back a
previous
project number that I can use for reference information (the most recent
similar project).

=MAX(IF('[Database.xls]Sheet1'!$D1:$D1000=B19,'[Database.xls]Sheet1'!$C1:$C1
000))

The MAX part gives me the highest match and the IF part makes it look only
for projects that match the description I tell it.

I thought this was the answer to my problem, and it works as I go along in
ascending order, but if I then later open up an old job from the template,
it
automatically updates it with new information that isn't valid for the
time
that this job is opened. Instead, I need for it to keep the information
that
was accurate only at the time I created the project.

This means I need to incorporate into the formula a way for it to tell me
what the MAX is BUT less than than the project's own project number, which
is
in cell B4.

CAN THIS BE DONE? Thanks!




  #4   Report Post  
Biff
 
Posts: n/a
Default

You're welcome!

Biff

"Alison" wrote in message
...
You are brilliant! Thank you!

"Biff" wrote:

Hi!

Add the appropriate file and sheet names.

Array entered:

A19 = project number

=MAX(IF((D1:D1000=B19)*(C1:C1000<A19),C1:C1000))

Biff

"Alison" wrote in message
...
I am entering project information into a template, which is then saved
to a
database. In this template, I use project numbers, and as I open new
projects those numbers get higher.

The following formula references a cell in the template, B19, which is
a
description, and then looks in the database for the highest matching
project
number that also has that description in its record. Column D is the
description and Column C is the project number. It gives me back a
previous
project number that I can use for reference information (the most
recent
similar project).

=MAX(IF('[Database.xls]Sheet1'!$D1:$D1000=B19,'[Database.xls]Sheet1'!$C1:$C1
000))

The MAX part gives me the highest match and the IF part makes it look
only
for projects that match the description I tell it.

I thought this was the answer to my problem, and it works as I go along
in
ascending order, but if I then later open up an old job from the
template,
it
automatically updates it with new information that isn't valid for the
time
that this job is opened. Instead, I need for it to keep the
information
that
was accurate only at the time I created the project.

This means I need to incorporate into the formula a way for it to tell
me
what the MAX is BUT less than than the project's own project number,
which
is
in cell B4.

CAN THIS BE DONE? 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
How do I make some columns all caps and others proper? rmm30 Excel Discussion (Misc queries) 2 June 13th 05 07:35 PM
How can I make a timesheet to figure my hours and payrate? Bruce Excel Worksheet Functions 2 March 25th 05 01:10 AM
Can you make a cell with a diagonal, so that you can edit the upper and lower part of the cell? g wills New Users to Excel 3 February 17th 05 10:23 PM
make hidden window or workbook visible without specify the name mango Excel Worksheet Functions 1 December 30th 04 03:05 PM
make a cell empty based on condition mpierre Charts and Charting in Excel 2 December 29th 04 01:01 PM


All times are GMT +1. The time now is 12:43 AM.

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"