Optimize code to check a Data Validation cell to pick another cell

johnbrownbaby

New Member
Joined
Dec 9, 2015
Messages
14
Hello,

I have cell E2 that contains a Data Validation group: "online", "article", "journal", "proceedings" and "magazine". I am populating cell K2 with a formula that is based on E2's entry. If I select an option for example "article", cell K2 will pick cell P2. Here is the logic that I used in cell K2:


Code:
=IF(G2="ONLINE",O2,IF(G2="article",P2,(IF(G2="journal",Q2,IF(G2="proceedings",R2,IF(G2="magazine",S2,T2))))))

This code works but I was wondering if there is a simpler solution to minimize this cell code?

Thanks!
 

Some videos you may like

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Watch MrExcel Video

Forum statistics

Threads
1,108,960
Messages
5,525,906
Members
409,671
Latest member
nasseralateek

This Week's Hot Topics

Top