Find the first instance of a number and return value

stephjayne165

New Member
Joined
Jan 20, 2012
Messages
23
Hey guys!

Ive been trawling the internet to try and find an answer to this question, but I've not come up with anything that's working as yet.

I'm currently working on a spreadsheet which has 30,000 rows of data. Below is a simplified version of my column a, what I'm after is a formula that will return "something" in the adjacent cell in column B if this is the first time this number has appeared in column a.

Column A.
1
1
1
2
3
3
4
4
4
4


I really hope hope this makes sense, I'm struggling a bit at the moment with the onset of a migraine which generally turns my brain to mush - trying to figure this out definitely isn't helping!

Let me know if you need me to clarify anything further

thanks in advance for your help :)
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
If your data in Column A is sorted as your example seems to indicate, then there is an alternate method available. Using the "Something" text that Andrew did, put "Something" in cell B1 (because you know the first item of the list will always meet your condition) and then put this formula in cell B2 and copy it down...

=IF(A1<>A2,"Something","")
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,996
Members
452,373
Latest member
TimReeks

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