Help needed please.

stevenwiezorek

New Member
Joined
Mar 15, 2022
Messages
6
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
excel help.png
excel help 2.png


The list on the left are items that I want to assign a group number to and the list to the right is the group descriptions with their corresponding group number. How do I write a formula in which whenever I type one of the 8 group descriptions in Column B, its corresponding number automatically inputted into column A. I'm sorry if this isn't very clear. If you need me to clear anything up, please ask.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
View attachment 60138View attachment 60139

The list on the left are items that I want to assign a group number to and the list to the right is the group descriptions with their corresponding group number. How do I write a formula in which whenever I type one of the 8 group descriptions in Column B, its corresponding number automatically inputted into column A. I'm sorry if this isn't very clear. If you need me to clear anything up, please ask.
maybe something like this into A2 and then copied down column A
Excel Formula:
=MATCH($B2,YOURRANGE,0)
Change the YOURRANGE to be the range where your text in white is located
 
Upvote 0
Solution
Hi,

One way with formula:

Book3.xlsx
ABCDE
10a
22c1b
35f2c
44e3d
58i4e
60a5f
76g
87h
98i
Sheet1047
Cell Formulas
RangeFormula
A2:A6A2=LOOKUP(2,1/(E$1:E$9=B2),D$1:D$9)
 
Upvote 0
@gordsky you would need to subtract 1 from your formula as the numbers start at 0. ;)
 
Upvote 0
maybe something like this into A2 and then copied down column A
Excel Formula:
=MATCH($B2,YOURRANGE,0)
Change the YOURRANGE to be the range where your text in white is located
@gordsky you would need to subtract 1 from your formula as the numbers start at 0. ;)
I am now at this problem, how do I subtract 1 so I can get the table to output correctly?
 
Last edited by a moderator:
Upvote 0
Just put a -1 at the very end of the formula.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,022
Messages
6,122,716
Members
449,093
Latest member
Mnur

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