formula to return one value only

p4nny

Board Regular
Joined
Jan 13, 2015
Messages
246
Hi,

I have performed a vlookup to bring the in the figures I require... The only problem is that there's many duplicates (but I can't remove the duplicates as the data is used for other function.

I would like the vlookup to do the following:

Column A is how the data lookups now but I would like it look like column B in showing one value only.. A pivot table would be ideal but this is summary tool.

A B
12312 12312
12312 0
12312 0
12312 0
87987 87987
87987 0
87987 0
45647 45647
45647 0
45647 0
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Im presuming your data is already there in column A? Its a bit confusing what you are asking for but this formula will produce the 2nd list with the first list in A1:A10. Put it in B1 and copy down.

=IF(COUNTIF($A$1:A1,A1)>1,0,A1)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,305
Members
452,633
Latest member
DougMo

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