Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I make some columns all caps and others proper? | Excel Discussion (Misc queries) | |||
How can I make a timesheet to figure my hours and payrate? | Excel Worksheet Functions | |||
Can you make a cell with a diagonal, so that you can edit the upper and lower part of the cell? | New Users to Excel | |||
make hidden window or workbook visible without specify the name | Excel Worksheet Functions | |||
make a cell empty based on condition | Charts and Charting in Excel |