Sort in alpha and add numerical value

stully

New Member
Joined
Oct 30, 2017
Messages
14
Good afternoon!

I am looking for some help and I don't know if I need a formula or a macro for this...

I have a 2-column worksheet
In Column A is a product Listing.
In Column B is a number listing based on the alpha sort from column A
People will be adding products into cell B2.

How do I get the sheet to add the product that is entered into cell B2 down into column A, sorted A to Z, and then get the correct numerical value in column B?

For example,
They enter in "bleach" in cell B2.
Bleach would then be dropped into Column A, sorted alphabetically, and the corresponding number would be entered into Column B. (so if bleach is the 4th on the list in alpha order, the number in column b would be 4).

Thank you for any help you can give!!
 

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).
If you will be entering anything in a cell, and what that entry moved/transferred to another cell, and then sorted, that would require VBA, a formula wont do that for you
 
Upvote 0
If you will be entering anything in a cell, and what that entry moved/transferred to another cell, and then sorted, that would require VBA, a formula wont do that for you

Thank you! I have not worked a lot with those and am struggling where to begin. I appreciate your help!
 
Upvote 0

Forum statistics

Threads
1,216,028
Messages
6,128,395
Members
449,446
Latest member
CodeCybear

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