Im using excel 2007 and I need help entering a formula that will take the text from one column and have a number associated with it in the next column.
Example: Accident = 1
Failure = 2
Violation = 3
Please help someone PLEASE!
Im using excel 2007 and I need help entering a formula that will take the text from one column and have a number associated with it in the next column.
Example: Accident = 1
Failure = 2
Violation = 3
Please help someone PLEASE!
make a table with the options and use Vlookup to find those values.
Notice my main language is not English.
I appreciate it, if you reply on my solution.
If you are satisfied with the solution, please mark the question solved.
You can add reputation by clicking on the star * add reputation.
Try
=LOOKUP(A1,{"Accident","Failure","Violation"},{1,2,3})
or
=MATCH(A1,{"Accident","Failure","Violation"},0)
Life's a spreadsheet, Excel!
Say thanks, Click *
I am still having trouble entering the information. an error message of N/A is given.
Date Incident Incident CODE Location of Incident Driver Agent
10/1/2013 ACCIDENT
Column A = Date
Column B = Incident ( which will be coded/ A(accident = 1); F(failure to comply = 2); V(violation = 3).
Column C = Incident code
Column D = Location
Column E = Violator
Column F = Agent
I need a formula for columns B & C -
Example:
Accident = 1
Failure = 2
Violation = 3
Try in column C
=LOOKUP(B2,{"A","F","V"},{1,2,3})
or
=MATCH(B2,{"A","F","V"},0)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks