need help with a formula

djs6025

New Member
Joined
Feb 6, 2012
Messages
40
Office Version
  1. 2016
Platform
  1. Windows
Hi Everybody,
I'm looking for a formula to look at duplicates in column A and return the lowest # in column D from those duplicates. I also need it to ignore the cells with "#N/A". The answer & formula will be in column E. Hopefully, I've explain that well enough. Below is a link to a screen shot I took for what I'm looking for. Thanks so much for your help.


https://imgur.com/a/Rp2Bc


Thanks,
Dan
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
vaoXTDI.png


the correct link is https://i.imgur.com/vaoXTDI.png
 
Last edited:
Upvote 0
maybe
Code:
{=MIN(IFERROR(IF(A:A=A1,D:D,9999999999),99999999))}

untested, this is an array formula you would drag down next to the table... It would look for all matches in column A on the corresponding Row and retrieve the value in column D and if not found it will use a large number as a placeholder since we will be looking for the lowest value... if it sees that the value in D is N/A it will just replace it with a large number to use in the min formula. Maybe it will work for you. Also you dont want to reference an entire column so edit the ranges to the size of the table

There is a way to type the largest excel number in scientific notation but a bunch of 9s should work too
 
Last edited:
Upvote 0
Hi,

If you want the #N/A error from Column D to show in Column E, use formula in E1 copied down, if you Don't want it to show use F1 formula:


Book1
ABCDEF
1LQP-H260272.81342.2342.2342.23
2LQP-H260272.81344.3442.2342.23
3LQP-H260272.813#N/A#N/A42.23
4LTP-L330420.36356.2253.2953.29
5LTP-L330420.36353.2953.2953.29
6LTP-L330420.36354.7853.2953.29
7LTP-L330420.363#N/A#N/A53.29
8LLP-P210132.68220.2620.2620.26
9LLP-P210132.68223.3820.2620.26
10LLP-P210132.68223.3420.2620.26
Sheet10
Cell Formulas
RangeFormula
E1{=IF(ISERROR(D1),D1,MIN(IF(ISNUMBER(D$1:D$10),IF(A$1:A$10=A1,D$1:D$10))))}
F1{=MIN(IF(ISNUMBER(D$1:D$10),IF(A$1:A$10=A1,D$1:D$10)))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
If you had copied and pasted my formulas into your sheet, remove the curly brackets { }, then hold down Control-Shift and hit Enter, Excel will add the { }.
 
Upvote 0
It worked! Thank you so much! You saved me from doing this manually on a 14k line spreadsheet. You're a lifesaver.

Thanks,
Dan
 
Upvote 0
You're welcome, glad you got it working.
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,447
Members
448,966
Latest member
DannyC96

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