Formula To Show Missing Numbers in a Range

oldeirish

New Member
Joined
Nov 24, 2014
Messages
40
Hi,
I have 3 columns with numbers associated with a person. Some people have 1, 2 or 3 numbers assigned to them within the 3 columns.
I’d like to have a 4th column show all the numbers missing from the range of the 3 columns. I’ve tried this array =SMALL(IF(COUNTIF(D:F,ROW($D$3:$F$79))=0,ROW($D$3:$F$79),""),ROW()) which returns a number, but it is not the smallest(beginning) number that is missing. The 1st number missing is 4 and I cannot figure out how to create this formula. I’d even try VBA, but I understand that less. I can figure it out if it’s written to the specific issue, but other than that, not much.
I’d love to know what I’m doing wrong, or if I should start from scratch and use something completely different.
Thank you kindly in advance for any help anyone may have. I have a few other questions, but will post separately.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
I am not able to access file-hosting sites from my current location :( Can you copy/paste a sample here?
 
Upvote 0
Further to Ford's comments, you said you had 3 columns of numbers but your sheet appears to have at least 4 columns of numbers. It also appears to have no indication of the expected results as requested by him.
 
Upvote 0
I am not able to access file-hosting sites from my current location :( Can you copy/paste a sample here?

[TABLE="width: 905"]
<tbody>[TR]
[TD]Unit Number[/TD]
[TD]Owner Last Name[/TD]
[TD]First Name[/TD]
[TD]Assigned Stall No.[/TD]
[TD]Stall No. 2[/TD]
[TD]Stall No. 3[/TD]
[TD]Locker No.[/TD]
[TD].[/TD]
[TD]Available Stalls[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD][/TD]
[TD][/TD]
[TD]54[/TD]
[TD]75[/TD]
[TD][/TD]
[TD]13[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD][/TD]
[TD][/TD]
[TD]39[/TD]
[TD][/TD]
[TD][/TD]
[TD]25[/TD]
[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D][/TD]
[TD][/TD]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]124[/TD]
[TD][/TD]
[TD][/TD]
[TD]40[/TD]
[TD]64[/TD]
[TD][/TD]
[TD]33[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


The 3 columns (D, E and F) labeled Assigned Stall #1, Assigned Stall #2 and Assigned Stall #3. They are assigned to people in Columns A, B and C.

In column J, I'd like to have the three columns (Assigned Stall Numbers) show the numbers, up to 85 that are not in these 3 columns.

Unit & Locker Numbers column are not used here.

Thank you for your patience. :)

Meghan
 
Last edited:
Upvote 0
Further to Ford's comments, you said you had 3 columns of numbers but your sheet appears to have at least 4 columns of numbers. It also appears to have no indication of the expected results as requested by him.


Hi,

Sorry about that. Unit numbers and locker numbers are not used here. I'd like to have the results in Column J

Thank you kindly!

Meghan
 
Upvote 0
OK thanks for the sample :)

What would a sample answer look like (and why?)

A sample answer would be any/all numbers not accounted for in the range. I’m looking to automate a parking stall availability list. If someone wants an extra stall, the number entered into columns D.E and F would automatically be removed form Column J and vice versa. They want to cancel a spot and the number they had would appear in Available Stalls.

As of right now, the lowest stall number is 4, but it does not appear using the formula quoted above.

Thank you again!!

Meghan
 
Upvote 0
So you want the same set of available numbers repeated in every row of the table?

And how is it that 75 (for example) is already used at least twice?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,101
Messages
6,170,116
Members
452,302
Latest member
TaMere

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