Data from One Column Generates Another

SkollDevours

New Member
Joined
Nov 9, 2020
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
Hi all,

I feel rather silly asking this but I have no idea how to phrase my question into google to find the answer.

I'm attempting to create a form that when I fill in the Suburb it populates the post code and MMM-Classification for that Suburb. In a separate spreadsheet (pictured here) I have copied all of this data however I'm unsure of the function I should enter to automatically populate the post code and MMM-Classification when I've entered the Suburb. Typically I've done similar functions using Nested If, however there are 2977 rows worth of data that I'm hoping I can pull and putting something as simple as B1:B2977 just isn't cutting it with Nested if.

For smaller tables I've previously put in something to the effect of: =IF(A1='Spreadsheet 2'A1,B1,IF(A2='Spreadsheet 2'A2,B2...

In the image below I've mocked up a quick show of what I'm hoping to do. I would like a formula that can recognise that if the Suburb is Agnes and it can find Agnes in the Suburb/Locality column that is should then pull the data of the same row but but in the appropriate column.
Please help, I'm going crazy thinking there has to be a simple answer!

1604984476051.png
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
look at INDEX / MATCH

 
Upvote 0
Welcome to the MrExcel board!

For future questions I suggest that you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with. ;)

Try this, copied across and down (check the table name matches yours)

SkollDevours.xlsm
ABCDEFGH
1State/TerritorySuburb/LocalityPostcodeMMM classification
2VictoriaABBEYARD30015Airly30054
3VictoriaADA30026Agnes30033
4VictoriaAGNES30033  
5VictoriaAIRE VALLEY30042  
6VictoriaAIRLY30054
Sheet1
Cell Formulas
RangeFormula
G2:H5G2=IF($F2="","",VLOOKUP($F2,Table1[[Suburb/Locality]:[MMM classification]],COLUMNS($F2:G2),0))
 
Upvote 0
Hey Peter, with the help you gave I was able to make it work. Thank you so much.
Unfortunately, my version of Excel won't allow for the XL2BB add in. I believe it's because my work's Microsoft suite is temporarily out of license. If I can though I will in the future.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,550
Members
449,088
Latest member
davidcom

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