Comparing cells to grab a value

RodneyW

Active Member
Joined
Sep 24, 2010
Messages
428
Office Version
  1. 2013
Platform
  1. Windows
I need a formula for cell C8 that has four elements it looks at.

1. It will look at cell E8. If E8 = H2, then display the value in I2
2. If E8 = H3, then display the value in I3
3. If E8 = H4, then display the value in I4
4. If E8 = H5, then display the value in I5

Thank you in advance
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
How about
=index(I2:I5,match(E8,H2:H5,0))
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0
Looking for a bit of a modification. I need to move the data in columns H and I to a tab named Goals. How do I modify? Something like this: =index(goals!,I2:I5,match(E8,Goals!,H2:H5,0)) but that's not working.

Thanks again.
 
Upvote 0
Try
=index(Goals!I2:I5,match(E8,Goals!H2:H5,0))
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,892
Messages
6,122,112
Members
449,066
Latest member
Andyg666

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