VLOOKUP and replace

pattih

New Member
Joined
Feb 26, 2013
Messages
45
I have a formula that looks up a project id and returns values "very high", "high", medium, low.

I want the formula to look up the project id and when the value is Very High, display VH in the cell instead of Very High, H instead of High, M instead of Medium and L instead of L. Is that possible all in one formula?

=IF(VLOOKUP('Template'!$E7,PM!$A$2:$AD$16000,18)="",VLOOKUP('Template'!$E7,PM!$A$2:$AD$16000,21),VLOOKUP('Template'!$E7,PM!$A$2:$AD$16000,18)
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
pattih, Good evening.

I'm not sure what you want exactly.

A) You want the search result to be modified in the cell where the formula is.

or

B) You want to change the original cell of your data where you already have the status information putting in the place of the word only the initial ones.

In case A) try using this formula:
Code:
=IF(VLOOKUP('Template'!$E7,PM!$A$2:$AD$16000,18)="",VLOOKUP('Template'!$E7,PM!$A$2:$AD$16000,21),[B][COLOR=#ff0000]LOOKUP([/COLOR][/B]VLOOKUP('Template'!$E7,PM!$A$2:$AD$16000,18)[B][COLOR=#ff0000],{"High","Low","Medium","Very High"}, {"H","L","M","VH"})[/COLOR][/B]

In case B) I suggest that you can use the Find and Replace function or even use Excel VBA to do this task.

Was that what you wanted?

I hope I've helped.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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