Formula help.

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,404
Office Version
  1. 2007
Platform
  1. Windows
Hi,

I have this formula that work very well but I need some help when the formula return a 0 that the 0 will be at the end ( on the right ) and not at the beginning, thank you.

{=IFERROR(SMALL(IF(ISNUMBER(MATCH(COLUMN($J$6:$N$6)-COLUMN($J$6)+1,MATCH($J6:$N6,$J6:$N6,0),0)),$J6:$N6),COLUMNS($Q$6:Q$6)),"")}

For example if the formula return : 04689 I would need it to return : 46890.

I know it has to do with the " SMALL " but dont know how to change it ?
Serge.
 
Last edited:

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Perfect, perfect, perfect, thank you Marcelo, that's exactly what I needed, I really appreciate your help, Thank you.
Serge.

Serge,

The formula is not correct - i wrongly used the range $Q6:$U6 that does not include the value in column P.

Try this new version
W6 copied across and down
=IFERROR(--SUBSTITUTE(SMALL(IF($P6:$U6<>"",IF(MATCH($P6:$U6,$P6:$U6,0)=COLUMN($P6:$U6)-COLUMN($P6)+1,IF(ISNA(MATCH($P6:$U6,{1;2;3},0)),--SUBSTITUTE($P6:$U6,0,10)))),COLUMNS($W6:W6)),10,0),"")
Ctrl+Shift+Enter

M.
 
Last edited:
Upvote 0
Try this

=IFERROR(SMALL(IF(ISNUMBER(MATCH(COLUMN($J$6:$N$6)-COLUMN($J$6)+1,MATCH($J6:$N6,$J6:$N6,0),0)),IF($J6:$N6>3,$J6:$N6,"")),COLUMNS($Q$6:Q$6)),0)
 
Upvote 0
Thank you Marcelo,

I changed it, but it seems to work fine with the previous one ! Thank you very much for the help everything works fine, you are the best.

Serge.
 
Upvote 0
kvsrinivasamurthy,

Thank you for your help, I appreciate it.

Serge.
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,391
Members
449,080
Latest member
Armadillos

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