Excel formula

kumar lama

Board Regular
Joined
May 20, 2014
Messages
85
Is There Short form for this Formula Please, but not VLookup, it's working but very long
=IF(INDEX(Sheet2!E5:E12,MATCH(C5,Sheet2!C5:C12,0))=1,"ABC",IF(INDEX(Sheet2!F5:F12,MATCH(C5,Sheet2!C5:C12,0))=1,"BCD",IF(INDEX(Sheet2!G5:G12,MATCH(C5,Sheet2!C5:C12,0))=1,"EFG","")))
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Try...

=INDEX({"ABC","BCD","EFG"},MATCH(1,INDEX(Sheet2!E5:G12,MATCH(C5,Sheet2!C5:C12,0),0),0))

or

=IFERROR(INDEX({"ABC","BCD","EFG"},MATCH(1,INDEX(Sheet2!E5:G12,MATCH(C5,Sheet2!C5:C12,0),0),0)),"")

...which both need to be confirmed with CONTROL+SHIFT+ENTER. Note that the array constant {"ABC","BCD","EFG"} can be replaced with a reference to a range of cells. For example, let E4 contain ABC, let F4 contain BCD, and G4 contain EFG, and then try...

=INDEX(Sheet2!E4:G4,MATCH(1,INDEX(Sheet2!E5:G12,MATCH(C5,Sheet2!C5:C12,0),0),0))

...which also needs to be confirmed with CONTROL+SHIFT+ENTER.

Hope this helps!
 
Upvote 0
Actually, these formulas only need to be confirmed with ENTER, not CONTROL+SHIFT+ENTER...
 
Upvote 0

Forum statistics

Threads
1,223,734
Messages
6,174,186
Members
452,550
Latest member
southernsquid2

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