Google Sheets Formula

gimamabe71

New Member
Joined
Dec 19, 2024
Messages
1
Office Version
  1. Prefer Not To Say
Platform
  1. MacOS
  2. Web
I would like to import the account number into cell B2 when a selection is made for an expense category in cell A2 from a dropdown menu.


Expense CategoryAccount
Contracts - General

The dropdown menu in cell A2, uses data validation from a table in a separate tab "selection lists". The data validation range for the dropdown menu in Column B.
The account number to be imported is in Column C



Expense Categories
Contracts - General25555
Food Catering32222
Miscellaneous43333

I am using google sheets, What formula should I use? I am using IF but is not working.

Any advice will be highly appreciated
 
Last edited by a moderator:

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
try
=index('Selection lists'!C2:C10000,match(A2,'Selection lists'!B2:B10000,0))

A lookup that looks up the value from the dropdown and then looks in the dropdown list sheet and returns the value in same row in column c

Change the range to match your list in 'Selection lists' sheet
 
Upvote 0

Forum statistics

Threads
1,224,814
Messages
6,181,123
Members
453,021
Latest member
Justyna P

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