Excel formula to return X:Y axis in a cell

vijay vj
vijay vj used Ask the Experts™
on
Dear sir,  i have matrix table in excel where its shows correlation between two stocks, i need to pick stocks if it has above 90% and between 80-90 % and so on .
1.jpg
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
ShumsManaging Director/Excel VBA Developer
Distinguished Expert 2018

Commented:
It would be helpful, if you upload sample workbook

Author

Commented:
check the matrix table and i need result as X:Y = 90 % so on
NSE-Data.xlsm
ShumsManaging Director/Excel VBA Developer
Distinguished Expert 2018

Commented:
Vijay,

It would be much easier to have Conditional formatting which will highlights both X & Y axis way.

Please find attached...
NSE-Data_V2.xlsm
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
IS it possible to pick that 90% or 80% separately sir
Managing Director/Excel VBA Developer
Distinguished Expert 2018
Commented:
Hi Vijay,

For Stocks above 90% you can use below Array formula:
=IFERROR(INDEX(CL$3:CL$32,SMALL(IF(CM$3:DP$32>$DS$2,ROW(CL$3:CL$32)-MIN(ROW(CL$3:CL$32))+1),ROWS(DS$1:DS1))),"")

Open in new window

confirmed with Ctrl+Shift+Enter
For Stocks between 80-90% you can use below Array formula:
=IFERROR(INDEX(CL$3:CL$32,SMALL(IF((CM$3:DP$32>$DT$2)*(CM$3:DP$32<$DS$2),ROW(CL$3:CL$32)-MIN(ROW(CL$3:CL$32))+1),ROWS(DT$2:DT2))),"")

Open in new window

confirmed with Ctrl+Shift+Enter
Hope this helps
NSE-Data_V3.xlsm

Author

Commented:
thanks for your hard work

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial