Lookup functions excel 2013: Non VBA

debruintjie

New Member
Joined
Sep 9, 2014
Messages
5
Hi
See below table.

ColumnABCDEFGHIJK
Row 1236533112236533112

<tbody>
</tbody>


I need a formulas for cell A1, B1 and C1 to include the first value in range E:J exceeding zero/non blank in A1, the second value in range E:J exceeding zero/non blank in B1 and the third value in range E:J exceeding zero/non blank in C1.

Kind regards
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

davesweep

Well-known Member
Joined
Apr 30, 2007
Messages
510
Hello,

I assume from your example you require E1:K1 and not E1:J1

A1 =INDEX(E1:K1,SMALL(IF(E1:K1<>"",COLUMN(E1:K1)-COLUMN(E1)+1),2))

B1 =INDEX(E1:K1,SMALL(IF(E1:K1<>"",COLUMN(E1:K1)-COLUMN(E1)+1),2)) : An array. Confirm with ctrl shift and enter

C1 =INDEX(E1:K1,SMALL(IF(E1:K1<>"",COLUMN(E1:K1)-COLUMN(E1)+1),3)) : An array. Confirm with ctrl shift and enter
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
A1, control+shift+enter, not just enter, and copy across to C1:
Rich (BB code):
=IFERROR(INDEX($E$1:$K$1,SMALL(IF(ISNUMBER($E$1:$K$1),
  COLUMN($E$1:$K$1)-COLUMN($E$1)+1),COLUMNS($A$1:A1))),"")
 

johnmpl

Board Regular
Joined
Jun 14, 2013
Messages
235
Hi to everyone!

The same concept of Aladin Akyurek, but with AGGREGATE (this formula not require Ctrl + Shift + Enter):

Code:
=IFERROR(INDEX($E$1:$K$1,AGGREGATE(15,6,(COLUMN($E$1:$K$1)-COLUMN($E$1)+1)/ISNUMBER($E$1:$K$1),COLUMNS($A1:A1))),"")

Blessings!
 
Master Excel Bundle

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.

Forum statistics

Threads
1,164,016
Messages
5,834,945
Members
430,329
Latest member
asmith75

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
Top