Please require a formula modification or a VBA alternatively

motilulla

Well-known Member
Joined
Feb 13, 2008
Messages
2,422
Office Version
  1. 2010
Hello,</SPAN></SPAN>

Previously I had data as shown in the row 6 and formula in cell AV1 and fill to right and down (this formula extract only unique value in ascending order left to right)</SPAN></SPAN>

But recent data has been changed as shown in the row 9 where red font data has been added to after each of the original data so the formula is not working... </SPAN></SPAN>

Because I want the same results ignoring added data. Please so far need a new formula for cell AV9 or a VBA alternatively solution to get same results as per row 6 data... </SPAN></SPAN>

Here is an example....</SPAN></SPAN>


Book1
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBIBJBKBLBMBN
1
2
3
4
5n1n2n3n4n5n6n7n8n9n1n2n3n4n5n6n7n8n9n1n2n3n4n5n6n7n8n9n1n2n3n4n5n6n7n8n9n10n11n12n13n14n15n16n17n18n19
61042173608111285100242451032238474201234567810111222243847
7
8
9104217360841394910-211128510024247660842485103223847421228313047-11?
10
11
12
13
14
Sheet1
Cell Formulas
RangeFormula
AV6=IF(MAX($C6:$AT6)=MAX($AU6:AU6),"",SMALL($C6:$AT6,COUNTIF($C6:$AT6,"<="&AU6)+1))


Thank you all</SPAN></SPAN>

Excel 2000</SPAN></SPAN>
Regards,</SPAN></SPAN>
Moti</SPAN></SPAN>
 
Last edited:

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Try the following array formula, check if the column in row 5 is different from space, that is, only consider the number x9 if it has n1, n2, n3, netc in the cell x5.

{=IF(MAX(IF($C5:$AT5<>"",$C9:$AT9))=MAX($AU9:AU9),"",SMALL(IF($C5:$AT5<>"",$C9:$AT9),COUNTIFS($C9:$AT9,"<="&AU9,$C5:$AT5,"<>" & "")+1))}

Array formulas
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself
 
Upvote 0
Try the following array formula, check if the column in row 5 is different from space, that is, only consider the number x9 if it has n1, n2, n3, netc in the cell x5.

{=IF(MAX(IF($C5:$AT5<>"",$C9:$AT9))=MAX($AU9:AU9),"",SMALL(IF($C5:$AT5<>"",$C9:$AT9),COUNTIFS($C9:$AT9,"<="&AU9,$C5:$AT5,"<>" & "")+1))}

Array formulas
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself
Hello DanteAmor, I think "COUNTIFS" function in the formula does not support my version. Please can you take a look? </SPAN></SPAN>

Thank you for your help
</SPAN></SPAN>

Kind Regards
</SPAN></SPAN>
Moti
</SPAN></SPAN>
 
Upvote 0
I think "COUNTIFS" function in the formula does not support my version.


What version of Excel do you have?
What appears as a result in the formula.
You are pressing Shift + Control + Enter to accept the Array formula.
 
Upvote 0
What version of Excel do you have?
What appears as a result in the formula.
You are pressing Shift + Control + Enter to accept the Array formula.

Hello DanteAmor, i am using Excel 2000 which I have mention in the post#1 bottom of the left corner I am getting result #¡VALUE!
Yes I entered the formula by pressing the
</SPAN></SPAN>Shift + Control + Enter</SPAN></SPAN>

Kind Regards
</SPAN></SPAN>
Moti
</SPAN></SPAN>
 
Upvote 0
Hello DanteAmor, if it could work changing the header any instead n1, n2, n3.... and so can be it only number like 1, 2, and 3.... or if formula works you can suggest any.... I can change it no problem </SPAN></SPAN>

Kind Regards</SPAN></SPAN>
Moti</SPAN></SPAN>
 
Upvote 0
Countif, has a peculiarity, which does not add if n < "", but I think I found an alternative.

Try this


{=IF(MAX(IF($C5:$AT5<>"",$C9:$AT9))=MAX($AU9:AU9),"",SMALL(IF($C5:$AT5<>"",$C9:$AT9),IF(AU9="",0,SUM(IF(($C9:$AT9<=AU9)*($C5:$AT5<>""),1)))+1))}

Array formulas
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself
 
Upvote 0
Solution
Countif, has a peculiarity, which does not add if n < "", but I think I found an alternative.

Try this


{=IF(MAX(IF($C5:$AT5<>"",$C9:$AT9))=MAX($AU9:AU9),"",SMALL(IF($C5:$AT5<>"",$C9:$AT9),IF(AU9="",0,SUM(IF(($C9:$AT9<=AU9)*($C5:$AT5<>""),1)))+1))}

Array formulas
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself
Spot on! DanteAmor, the formula worked like a dream absolutely fantastic! </SPAN></SPAN>

I appreciate your kind help and time for solving it. :beerchug:</SPAN></SPAN>
Good Luck </SPAN></SPAN>

Kind Regards
</SPAN></SPAN>
Moti :)
</SPAN></SPAN>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,169
Members
453,021
Latest member
Justyna P

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