Skipping to next index match value when the formula returns "0"

Bassie

Board Regular
Joined
Jan 13, 2022
Messages
66
Office Version
  1. 2019
Platform
  1. Windows
Hi,

I am trying to make a auto populating column depending on data from another column. However, when a value in the column is "" the index match will return a 0. Is there a way to skip this 0? I dont want the 0 to be a blank space but rather to move everything under the 0 1 cell up

Current formula:

Excel Formula:
=IFERROR(INDEX($C$17:$C$29,MATCH(0,COUNTIF($H$16:H16,$C$17:$C$29),0)),"")

I hope I made myself clear

Regards,
Bassie
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
How about
Excel Formula:
=UNIQUE(FILTER(C17:C29,C17:C29<>""))
 
Upvote 0
How about
Excel Formula:
=IFERROR(INDEX($C$17:$C$29,AGGREGATE(15,6,(ROW($C$17:$C$29)-ROW($C$17)+1)/($C$17:$C$29<>"")/(ISNA(MATCH($C$17:$C$29,$H$16:H16,0))),1)),"")
 
Upvote 1
Solution
How about
Excel Formula:
=IFERROR(INDEX($C$17:$C$29,AGGREGATE(15,6,(ROW($C$17:$C$29)-ROW($C$17)+1)/($C$17:$C$29<>"")/(ISNA(MATCH($C$17:$C$29,$H$16:H16,0))),1)),"")
This is madness, thank you so much!!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,043
Messages
6,122,822
Members
449,096
Latest member
Erald

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