Previous Post:
http://www.mrexcel.com/forum/excel-questions/714779-importing-data-access-database.html
I solved the previous post by using VLOOKUP :
=IFERROR(VLOOKUP(A10,Main_Table, 3, FALSE)," ")
Having exported the required fields from Access to Excel, I saved them as a Table to a second worksheet within my workbook. I then set a data validation drop down as the first column of my worksheet which selected the appropriate records from the Table. The VLOOKUP formual then auto filled the rest of the cells (simply changing the column number "3" to the appropriate column.
However, I now need to selectively concatanate two further columns, House Name & House Number, whereby if an address has a house number, it returns that number, if not, it returns the house name. I can do this within the same worksheet by using :
=IF((ISBLANK(AQ9)),AO9,AQ9) where Column AQ is the house number and Column AO is the house name. However I need to select the correct row as in VLOOKUP above, so presumably I need to nest the two functions ?
Can anyone please show me the correct syntax to combine these two functions so that I reference the correct row number ?
Many Thanks
Access/Excel 2007
Windows XP
http://www.mrexcel.com/forum/excel-questions/714779-importing-data-access-database.html
I solved the previous post by using VLOOKUP :
=IFERROR(VLOOKUP(A10,Main_Table, 3, FALSE)," ")
Having exported the required fields from Access to Excel, I saved them as a Table to a second worksheet within my workbook. I then set a data validation drop down as the first column of my worksheet which selected the appropriate records from the Table. The VLOOKUP formual then auto filled the rest of the cells (simply changing the column number "3" to the appropriate column.
However, I now need to selectively concatanate two further columns, House Name & House Number, whereby if an address has a house number, it returns that number, if not, it returns the house name. I can do this within the same worksheet by using :
=IF((ISBLANK(AQ9)),AO9,AQ9) where Column AQ is the house number and Column AO is the house name. However I need to select the correct row as in VLOOKUP above, so presumably I need to nest the two functions ?
Can anyone please show me the correct syntax to combine these two functions so that I reference the correct row number ?
Many Thanks
Access/Excel 2007
Windows XP