Data validation with if condition

springran

Board Regular
Joined
Mar 18, 2014
Messages
56
Office Version
  1. 365
Platform
  1. Windows
Hi All, Plese help

I have set up a drop down list in Column A ( only two team A & B) and I have a reference number list within the other tab. When people select "A" team I want to automaticlly add " A" in from of number and populate the number in column B.


Result should like below

1709866325720.png
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
=IF(A1<>"",A1&"12-3456","")
Where are you getting your number? Is it always the same related to the team? If so then create a table with TEAM and NUMBER and do a XLOOKUP. If not , the is it the same row as B2?
 
Upvote 0
=IF(A1<>"",A1&"12-3456","")
Where are you getting your number? Is it always the same related to the team? If so then create a table with TEAM and NUMBER and do a XLOOKUP. If not , the is it the same row as B2?
Hi Jeffrey

Thank you for your help

I used your formular and got the below results.

Column D ( reference number should be in other tab).

The results want to see as row 7-9. When people pick "P" the formular in column B automatuictly pick up next refereence number in reference number tab.

1710100078332.png
 

Attachments

  • 1710099953565.png
    1710099953565.png
    16.6 KB · Views: 8
Upvote 0

Forum statistics

Threads
1,223,949
Messages
6,175,581
Members
452,653
Latest member
craigje92

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