Hello everyone
I am stuck with a excel file. I have a excel file which i am downloading from one software. Its basically logs file, i mean which all users logged in and their activity.
What i am trying to do is, i have possible sentence which will not matches exactly but partially it matches. I tried to do it with Find function, but i need to compare it with one column and if match found then i need to put value from next column.
Eg: I have 3 columns, User Type, Activity, and Output.
suppose if activity is "Invoice Created #001", if User type is Admin, then i need "Yes" in Output Column, Sometimes sentence will starts from Some name like "Mike - Invoice Created #002", so this challenge.
Second scenario is , if activity is "Invoice created #991" if User type is Staff, then i need "No", because Staff doesn't have access to create invoice.
So here "Invoice Created" is common, so i have added separately and create column as Admin and marked as "Yes" and for "Staff" marked as "No"
Here what i have done is i have added 3 more columns, like activity which i am updating manually, if i have activities like "Invoice Created #001", "Invoice Created #002" ... etc . here "Invoice Created" is common, so "Invoice Created" i am updating in the column where i have added, in this file its in G Column, and i have 2 roles "Admin" and "Staff", in that column, for Invoice Created, Admin will be Yes and Staff will be No.
Similarly i am updating for all activities.
Now i need to compare "invoice created #001" with "G" Column and "User Type", If User is Admin, then as per "Admin" Column "Yes" Or "Normal Activity", if User is "Staff", then as per "Staff" Column "No" or "Suspicious Activity" should display in C Column,
I have attached sample file.
Can we do it in Excel formulas or Macros. I will be ok with both?
I am stuck with a excel file. I have a excel file which i am downloading from one software. Its basically logs file, i mean which all users logged in and their activity.
What i am trying to do is, i have possible sentence which will not matches exactly but partially it matches. I tried to do it with Find function, but i need to compare it with one column and if match found then i need to put value from next column.
Eg: I have 3 columns, User Type, Activity, and Output.
suppose if activity is "Invoice Created #001", if User type is Admin, then i need "Yes" in Output Column, Sometimes sentence will starts from Some name like "Mike - Invoice Created #002", so this challenge.
Second scenario is , if activity is "Invoice created #991" if User type is Staff, then i need "No", because Staff doesn't have access to create invoice.
So here "Invoice Created" is common, so i have added separately and create column as Admin and marked as "Yes" and for "Staff" marked as "No"
Here what i have done is i have added 3 more columns, like activity which i am updating manually, if i have activities like "Invoice Created #001", "Invoice Created #002" ... etc . here "Invoice Created" is common, so "Invoice Created" i am updating in the column where i have added, in this file its in G Column, and i have 2 roles "Admin" and "Staff", in that column, for Invoice Created, Admin will be Yes and Staff will be No.
Similarly i am updating for all activities.
Now i need to compare "invoice created #001" with "G" Column and "User Type", If User is Admin, then as per "Admin" Column "Yes" Or "Normal Activity", if User is "Staff", then as per "Staff" Column "No" or "Suspicious Activity" should display in C Column,
I have attached sample file.
Can we do it in Excel formulas or Macros. I will be ok with both?
Attachments
Last edited: