Formula Please

Dazzawm

Well-known Member
Joined
Jan 24, 2011
Messages
3,748
Office Version
  1. 365
Platform
  1. Windows
A bit tricky to explain this one but would be a great help if it can be done.


In columns B & C I have various data stretching down 21000 rows. I need a formula to do the following:-

Starting in E2 I need it to look at the information in column B and put 001 whenever the information is the same in column E, but if the info is different in column C then put 002 in each cell in E and so on

e.g
cell b2 abc123 cell c2 456 cell e2 001
cell b3 abc123 cell c3 456 cell e3 001
cell b4 abc123 cell c4 789 cell e4 002
cell b5 abc123 cell c5 123 cell e5 003
cell b6 abc456 cell c6 456 cell e6 001
cell b7 abc456 cell c7 789 cell e7 002

and so on..

I hope I have explained myself ok!!. Thanks

I can e-mail an example spreadsheet if someone PMs me.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Thank you so much for all your time and help. You have saved me quite some time if i had to do all these manually. Again many thanks.
 
Upvote 0

Forum statistics

Threads
1,215,331
Messages
6,124,312
Members
449,152
Latest member
PressEscape

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