Return value of adjacent raw cell if targetted raw cell met a condition

Majidh

New Member
Joined
Oct 15, 2023
Messages
2
Office Version
  1. 2013
Platform
  1. Windows
Hi;

Not sure if I can explain it well...
As in the attached image, I want to return the value from the first raw (shaded in yellow), if the cell value in adjacent raws (the colurfull raws) is greater than 0.7. For example, in the column of "Which letter", the first cell "i3" should be empty because none of the adjacent raw cell has value greater than 0.7. But in the second cell "i4", the value should be "D" because it is in the the first adjacent raw cell where this raw has a cell value greater than 0.7. The third cell should return "C", and so on...
Is there any function I can use. I tried VLOOKUP & IF statement, but did not successed.

Yours
 

Attachments

  • Capturecell.JPG
    Capturecell.JPG
    39 KB · Views: 4

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Here's one way:
Book1
ABCDEFGHI
10.70
2ABCDEFWhich letter
310.100.140.180.220.260.30 
420.400.500.600.700.800.90D
530.280.600.921.241.561.89C
640.040.200.360.520.690.85F
750.900.961.021.081.141.20A
860.440.600.760.921.081.24C
Sheet1
Cell Formulas
RangeFormula
I3:I8I3=IFERROR(INDEX($C$2:$H$2,MATCH(TRUE,INDEX($C3:$H3>=$A$1,0),)),"")
 
Upvote 1
Here's one way:
Book1
ABCDEFGHI
10.70
2ABCDEFWhich letter
310.100.140.180.220.260.30 
420.400.500.600.700.800.90D
530.280.600.921.241.561.89C
640.040.200.360.520.690.85F
750.900.961.021.081.141.20A
860.440.600.760.921.081.24C
Sheet1
Cell Formulas
RangeFormula
I3:I8I3=IFERROR(INDEX($C$2:$H$2,MATCH(TRUE,INDEX($C3:$H3>=$A$1,0),)),"")

It works :)
Thanks a lot for your quick help, appreciated.
 
Upvote 0

Forum statistics

Threads
1,215,090
Messages
6,123,061
Members
449,091
Latest member
ikke

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