Need a formula

RAJESH1960

Well-known Member
Hello Guys

I am trying to get the values in column J with the help of a formula. Column J is the result entered manually which is as per the columns O to AH which have values and are not blank. I want to enter a column in column J where it will search the cells for values in O to AH and display the heading of that column.
Book1
1RateTotalICS512182851218282.52.5669914145121828
25100 2.52.51002.52.5
312200 12122001212
418300 27273002727
528400 56564005656
6550025  50025
71260072  60072
818700126  700126
928800224  800224
Sheet1
Cell Formulas
RangeFormula
K2:K9K2=SUM(O2:V2)
L2:L9L2=IF(SUM(AE2:AH2)=0,"",SUM(AE2:AH2))

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

jasonb75

Well-known Member
Excel Formula:
``=IFERROR(INDEX(O\$1:AH\$1,MATCH(J2,O2:AH2,0)),"")``

RAJESH1960

Well-known Member
Hello Guys

I am trying to get the values in column J with the help of a formula. Column J is the result entered manually which is as per the columns O to AH which have values and are not blank. I want to enter a column in column J where it will search the cells for values in O to AH and display the heading of that column.
Book1
1RateTotalICS512182851218282.52.5669914145121828
25100 2.52.51002.52.5
312200 12122001212
418300 27273002727
528400 56564005656
6550025  50025
71260072  60072
818700126  700126
928800224  800224
Sheet1
Cell Formulas
RangeFormula
K2:K9K2=SUM(O2:V2)
L2:L9L2=IF(SUM(AE2:AH2)=0,"",SUM(AE2:AH2))
Jasonb, Did you get the correct solution.? Because when I enter your formula I am getting all zeroes with a message which reads as
"There are one or more circular references where a formula refers to its own cell either directly or indirectly.This might cause them to calculate incorrectly."
Book1
1RateTotalICS512182851218282.52.5669914145121828
20100 2.52.51002.52.5
30200 12122001212
40300 27273002727
50400 56564005656
6050025  50025
7060072  60072
80700126  700126
90800224  800224
10
Query1
Cell Formulas
RangeFormula
J2:J9J2=IFERROR(INDEX(O\$1:AH\$1,MATCH(J2,O2:AH2,0)),"")
K2:K9K2=SUM(O2:V2)
L2:L9L2=IF(SUM(AE2:AH2)=0,"",SUM(AE2:AH2))

jasonb75

Well-known Member
Typo
Excel Formula:
``=IFERROR(INDEX(O\$1:AH\$1,MATCH(K2,O2:AH2,0)),"")``

RAJESH1960

Well-known Member
Typo
Excel Formula:
``=IFERROR(INDEX(O\$1:AH\$1,MATCH(K2,O2:AH2,0)),"")``
Got it. Thanks Jasonb

Replies
4
Views
330
Replies
3
Views
168
Replies
7
Views
221
Replies
7
Views
265
Replies
3
Views
238

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,151,972
Messages
5,767,393
Members
425,410
Latest member
SmittyT

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.

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

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