Formula to add missing numbers in a given sequence.

MarkPD

New Member
Joined
Mar 23, 2021
Messages
6
Office Version
  1. 2013
Platform
  1. Windows
Hi everyone,

I'm just a beginner Excel user and spend time reading and searching Excel formulas available online, so please bear my naivety. I'm creating a table in which it can list the missing numbers in a column. I'm using a series of numbers found in the official receipt for example, for my data. I've found an array that made that possible =SMALL(IF(ISERROR(MATCH($T$3+ROW(OFFSET($T$3, 0,0, $T$4-$T$3-1))-2, $T$3:$T$4,0)), $T$3+ROW(OFFSET($T$3,0, 0, $T$4-$T$3-1))-2), ROW(A1)) ,though I can't locate the website where I got the array so I do apologize. Now I want to extract the non-duplicate numbers in a different column for tracking purposes in which I can't figure out a way to do it. I am humbly asking for assistance from the expert here to help me complete this. Thank you in advance.
 

Attachments

  • Excel.JPG
    Excel.JPG
    176.6 KB · Views: 56

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi & welcome to MrExcel.
Not sure what you mean by "extract the non-duplicate numbers", but you can simplify the formula in T6 down like
Excel Formula:
=IF(T$3+ROWS(T$6:T6)>=T$4,"",T$3+ROWS(T$6:T6))
 
Upvote 0
Hi & welcome to MrExcel.
Not sure what you mean by "extract the non-duplicate numbers", but you can simplify the formula in T6 down like
Excel Formula:
=IF(T$3+ROWS(T$6:T6)>=T$4,"",T$3+ROWS(T$6:T6))
Thank you for your response Fluff, I updated my table with the formula you provided me.
 
Upvote 0
About extracting the non-duplicate numbers or the unique values. I have attached a screenshot of the table (11 columns, Column T to AD) I want to extract the unique numbers that has no duplicate to B6 cell for example.
 
Upvote 0
I'm sorry, forgot to insert the screenshot. Here it is.
Excel2.JPG
Excel2.JPG
 
Upvote 0
As the only unique numbers will be those between AD4 & T4 you can use this in B6 dragged down
Excel Formula:
=IF(AD$4+ROWS(B$6:B6)-1>=T$4,"",AD$4+ROWS(B$6:B6)-1)
 
Upvote 0
As the only unique numbers will be those between AD4 & T4 you can use this in B6 dragged down
Excel Formula:
=IF(AD$4+ROWS(B$6:B6)-1>=T$4,"",AD$4+ROWS(B$6:B6)-1)
This brings me closer to completion, thanks. How can I expand the selection from AD4 & T4 to T6 up to AD56?. Is it possible to extract non duplicate number from multiple columns and rows?
 
Upvote 0
I know of no way of doing that with your version of Xl, although with the layout you have shown it will be every value in cols V:AD
 
Upvote 0
Ignore the previous post, how about
Excel Formula:
=AGGREGATE(15,6,$T$6:$AD$56/(COUNTIFS($T$6:$AD$56,$T$6:$AD$56)=1),ROWS(B$6:B6))
 
Upvote 0
Solution
Ignore the previous post, how about
Excel Formula:
=AGGREGATE(15,6,$T$6:$AD$56/(COUNTIFS($T$6:$AD$56,$T$6:$AD$56)=1),ROWS(B$6:B6))
Thank you so much! It works now. I deeply appreciate your help on this.
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,046
Members
449,063
Latest member
ak94

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