excel - Finding if a value is located in a range of cells in a corresponding column, to a row with the same value as a given cell in a given row -
given column contains directory paths, , column b contains actions on these paths; i'd resultant cell contain specific string if specific string located in column b (per column a).
granted can sort column, believe can use offset
, know how locate ending index of cells can search range
returned offset
.
for example:
path operation /share/admins accessed /share/admins removed /share/admins added /share/admins changed /share/network accessed /shared/projects accessed
in case, want search path
unique value (in case /share/admins
, /share/network
, , /shared/projects
), , given range in path
, i'd search corresponding operation
, , if operation matches removed
, added
, changed
exists, i'd cell value write
; , if values aren't found, "read".
in case, expect column (with header result
) read:
path operation result /share/admins accessed write /share/admins removed write /share/admins added write /share/admins changed write /share/network accessed read /shared/projects accessed read
pardon seo: using compare varonis datadvantage reports 01.a.01
(user access logs) 04.j.01
(effective user permissions report). unfortunately, datadvantage doesn't feel need write reports correlate user activity records , file system permissions records.
you can use sumproduct. see screenshot.
=if(sumproduct((a:a=a1)*((b:b="removed")+(b:b="added")+(b:b="changed"))),"write","read")
or in shorter form:
=if(sumproduct((a:a=a1)*(b:b={"removed","added","changed"})),"write","read")
Comments
Post a Comment