A better way to look?

GAJITCS

Board Regular
Joined
Apr 21, 2015
Messages
66
I have a table that is populated by other criteria.

EN4:EQ4 is defined as "EX_CA"


ENEOEPEQERESETEU
4XXXX
5PNLDPSPRMS
7617.1810.4615.6014.4714.47SS
7718.1819.4314.4715.6014.4714.47SPSP
7810.759.38.1612.5311.1711.17SS
798.095.874.8812.5311.1711.17SS
8018.1814.2814.4715.6014.4714.47SS
8118.1819.4314.4715.6014.4714.47SS
8218.1814.439.7415.6014.4714.47SS

<tbody>
</tbody>

Cell ES76 contains: {=IFERROR(SMALL(IF(EX_CA<>"X",IF(EN76:ER76<>0,EN76:ER76)),1),"")}
This picks out the smallest non zero value from EN76:ER76 where in the defined range EX_CA, there are no cells containing an "X". It's basically a lookup of the lowest value on the row, where the column is not excluded from the search. In this case, I have excluded columns EN to EQ by placing an X in each column on row 4. It works.

The values in EN76:ER82 are referenced from other cells in other sheets. Though there are cells on the same row reporting to be the same value as another cell on that row even when the cells are displayed to 10 decimal places, they are not being treated as being the same for some reason, but that is by the by. I'm not worried about that. The source data has been supplied to me and I just need to crunch this bit.

My issue is that in ETn, I need to identify from which column the value is ESn was found and return the corresponding cell value from row 5 of that column. We can see that ET77 picks up EP as being the column to return the value from.

ETn is an inelegant nested IF statement that asks =IF(ES77=EN77,EN5,IF(ES77=EO77,EO5... etc and isn't dealing with the minute difference that exists between the values of EP77 and ER77, hence the SP in ET77 rather than the S it should be. Remember that column EP is excluded from the formula in column ES.

If I wrap the formulas in EN76:ER82 with a ROUNDUP to 2 places, the problem is compounded and I actually end up with more values in ETn reporting the wrong values, so I am happy that the differences in the cells EN76:ER82 are what they should be without the ROUNDUP.

So... Onto the question.
Can I lookup the column that is actually in cells ESn from columns EN:ER where EX_CA is not X and return the cell value from row 5?

Many thanks.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Honestly, while you've taken considerable effort with your post, I am thinking that with the number of views this has had, and the time since posting, that various persons have been overawed by the task.

By that I mean, you have given a rather truncated table of your Worksheet and then an explanation which is difficult to reconcile against the table given.

If there is nothing sensitive in it (otherwise remove/replace it) then I suggest that you post a copy of the full worksheet to a cloud sharing site (eg. Dropbox, GoogleDrive, your choice). Then there is no need for any of us to attempt a rebuild.
 
Upvote 0

Forum statistics

Threads
1,216,106
Messages
6,128,863
Members
449,473
Latest member
soumyahalder4

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