shawn4leslee
New Member
- Joined
- Apr 3, 2016
- Messages
- 5
Background:
I have (2) individual lists on separate sheets in (1) workbook. Sheet2! has lists of (2) different types of units (2r entered in Sheet2! column G, 4r entered in Sheet2! column J) with unique text&number combo id's (i.e. abc123 in Sheet2! column H) and a date entered field for each in column prior (date for 2r is in Sheet2! column F, 4r date on column I). Multiple units and types are add daily.
Sheet1! is manual entry for requests. This sheet will have cell (Sheet1!D2) to enter the unit type.
I want to have a cell in (Sheet1!E2) to provide oldest date for that type and a cell in (Sheet1!F2) that returns the matching id (abc123).
My issue is that I don't want to that id (abc123) to be used again in reference. Any way I use to eliminate it just creates a circular reference.
What I have so far for:
Sheet1!E2
=IF(D2="","",IF(D2=2r,MIN(Sheet2!G:G,IF(D2=4r,MIN(Sheet2!J:J),"INCORRECT")))
Sheet1!F2
=IF(D2="","",IF(D2=2r,,VLOOKUP(E2,Sheet2!G:H,2,FALSE),IF(D2=4rVLOOKUP(E2Sheet2!J,2,FALSE),"")))
Advice anyone? VBA is still a little outside my comfort zone. I can use them if I have them but I just don't fully understand them (yet...)
I have (2) individual lists on separate sheets in (1) workbook. Sheet2! has lists of (2) different types of units (2r entered in Sheet2! column G, 4r entered in Sheet2! column J) with unique text&number combo id's (i.e. abc123 in Sheet2! column H) and a date entered field for each in column prior (date for 2r is in Sheet2! column F, 4r date on column I). Multiple units and types are add daily.
Sheet1! is manual entry for requests. This sheet will have cell (Sheet1!D2) to enter the unit type.
I want to have a cell in (Sheet1!E2) to provide oldest date for that type and a cell in (Sheet1!F2) that returns the matching id (abc123).
My issue is that I don't want to that id (abc123) to be used again in reference. Any way I use to eliminate it just creates a circular reference.
What I have so far for:
Sheet1!E2
=IF(D2="","",IF(D2=2r,MIN(Sheet2!G:G,IF(D2=4r,MIN(Sheet2!J:J),"INCORRECT")))
Sheet1!F2
=IF(D2="","",IF(D2=2r,,VLOOKUP(E2,Sheet2!G:H,2,FALSE),IF(D2=4rVLOOKUP(E2Sheet2!J,2,FALSE),"")))
Advice anyone? VBA is still a little outside my comfort zone. I can use them if I have them but I just don't fully understand them (yet...)