Formula or alternative to populate a cell value based on the criteria of multiple other cells in a table.

Derick_T

New Member
Joined
Mar 30, 2019
Messages
11
I have this table that is taking some form data, then using a macros to populate an equipment log for the day some equipment (filter bags) were installed. The form data is filled out with the respective operator who installed, and the relative information we need to uniquely identify the bag and reason for replacement (failure mode, bag. mfr., main compartment #, sub-compartment #, cell, column, row and even comments if needed). Every time data is entered a new line(s) are created on the "history log" tab in the workbook, so that the new filter bag(s) are new line items. This part all works well, and there is no problem there.

My next step, and what I am hoping for some help with, being able to back-populate the existing filter bag line items in the history log with a an equipment Removal Date, which should match the new bag Installation Date. Is there any formulas or good way to do this?

There are thousands of bags installed on this equipment and being storable to track the failures, age, and average failure age is value added data I would like to track and trend. My first though to accomplish this was to have a formula Removal Date to match the new Installation Date as new line items were populated into the history log table although there may be some constraints to doing that or more efficient ways.

Reference snapshots
The form data that we fill out to a create a new line item(s) in the history log tab:
1578960676900.png


History Log table example with the above data/line item:
1578960754563.png


So up to now everything is good because these are all new bags that are "In Use". But now if make another entry with those exact bags, I would like the Removal Date column to populate with the Installation Date line items for the respective bags.

For example:
1578961231047.png


Thanks in advance for the help. I'll gladly share the workbook if needed.
 

Attachments

  • 1578960403402.png
    1578960403402.png
    89 KB · Views: 4
  • 1578960568147.png
    1578960568147.png
    36.1 KB · Views: 3

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
this will work with a helper column I;

Book1
ABCDEFGHI
111211 1|1|2|1|1
211212 1|1|2|1|2
311213 1|1|2|1|3
411214 1|1|2|1|4
511215 1|1|2|1|5
6
7
Sheet3
Cell Formulas
RangeFormula
G1:G5G1=IF((COUNTIF($I$1:$I$100,I1)-COUNTIF($I$1:I1,I1))>0,"Removed","")
I1:I5I1=TEXTJOIN("|",,A1,B1,C1,D1,E1)


Book1
ABCDEFGHI
111211Removed1|1|2|1|1
211212 1|1|2|1|2
311213 1|1|2|1|3
411214 1|1|2|1|4
511215 1|1|2|1|5
611211 1|1|2|1|1
7
8
Sheet3
Cell Formulas
RangeFormula
G1:G6G1=IF((COUNTIF($I$1:$I$100,I1)-COUNTIF($I$1:I1,I1))>0,"Removed","")
I1:I6I1=TEXTJOIN("|",,A1,B1,C1,D1,E1)


Book1
ABCDEFGHI
111211Removed1|1|2|1|1
211212 1|1|2|1|2
311213Removed1|1|2|1|3
411214 1|1|2|1|4
511215 1|1|2|1|5
611211 1|1|2|1|1
711213 1|1|2|1|3
8
Sheet3
Cell Formulas
RangeFormula
G1:G7G1=IF((COUNTIF($I$1:$I$100,I1)-COUNTIF($I$1:I1,I1))>0,"Removed","")
I1:I7I1=TEXTJOIN("|",,A1,B1,C1,D1,E1)
 
Upvote 0
another way without the extra column

Book1
ABCDEFG
111211 
211212 
311213 
411214 
511215 
6 
7 
Sheet3
Cell Formulas
RangeFormula
G1:G7G1=IF((COUNTIFS($A$1:$A$100,A1,$B$1:$B$100,B1,$C$1:$C$100,C1,$D$1:$D$100,D1,$E$1:$E$100,E1)-COUNTIFS($A$1:A1,A1,$B$1:B1,B1,$C$1:C1,C1,$D$1:D1,D1,$E$1:E1,E1))>0,"Removed","")


Book1
ABCDEFG
111211Removed
211212 
311213 
411214 
511215 
611211 
7 
Sheet3
Cell Formulas
RangeFormula
G1:G7G1=IF((COUNTIFS($A$1:$A$100,A1,$B$1:$B$100,B1,$C$1:$C$100,C1,$D$1:$D$100,D1,$E$1:$E$100,E1)-COUNTIFS($A$1:A1,A1,$B$1:B1,B1,$C$1:C1,C1,$D$1:D1,D1,$E$1:E1,E1))>0,"Removed","")


Book1
ABCDEFG
111211Removed
211212 
311213Removed
411214 
511215 
611211 
711213 
Sheet3
Cell Formulas
RangeFormula
G1:G7G1=IF((COUNTIFS($A$1:$A$100,A1,$B$1:$B$100,B1,$C$1:$C$100,C1,$D$1:$D$100,D1,$E$1:$E$100,E1)-COUNTIFS($A$1:A1,A1,$B$1:B1,B1,$C$1:C1,C1,$D$1:D1,D1,$E$1:E1,E1))>0,"Removed","")
 
Upvote 0

Forum statistics

Threads
1,215,771
Messages
6,126,799
Members
449,337
Latest member
BBV123

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top