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

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
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
 
Upvote 0
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))),"")
 
Upvote 0
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!
 
Upvote 0

Forum statistics

Threads
1,214,822
Messages
6,121,767
Members
449,049
Latest member
greyangel23

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