Trying to return text from a column on different sheet and getting #value error.

John_k

New Member
Joined
Mar 16, 2016
Messages
18
Hi I'm trying to pull three pieces of data from a different excel sheet based on a unique code. The 3rd column is text greater than 255 characters and cant get this to work, which appears to be causing issues. The text includes (), ', - characters also.

=XLOOKUP(C72,'AE Level'!$E:$E,CHOOSE({1,2,3},'AE Level'!$G:$G,'AE Level'!$Z:$Z,'AE Level'!$AA:$AA,'AE Level'!$GH:$GH))

Can anyone help or provide a better way to get the data from the third column.

Thanks
J
 
Last edited:

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Just curious, your choose has is selecting 3 columns but you have 4 columns in the list, is there a reason for that ?
It seems to be choose that is causing the issue. This seems to work.
Excel Formula:
=LET(rReturn,HSTACK('AE Level'!G:G,'AE Level'!Z:Z,'AE Level'!AA:AA),XLOOKUP(C72,'AE Level'!E:E,rReturn))
 
Upvote 0
Just curious, your choose has is selecting 3 columns but you have 4 columns in the list, is there a reason for that ?
It seems to be choose that is causing the issue. This seems to work.
Excel Formula:
=LET(rReturn,HSTACK('AE Level'!G:G,'AE Level'!Z:Z,'AE Level'!AA:AA),XLOOKUP(C72,'AE Level'!E:E,rReturn))
Sorry that was just a typo its the three columns i need, okay i shall try this you have sent.
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
also if i wanted to add a fourth column what would i need to do. Thank you
Assuming you have MS365 and the HStack function, this is just a comma separated list of ranges, you can add more if you need more.
Excel Formula:
HSTACK('AE Level'!G:G, 'AE Level'!Z:Z, 'AE Level'!AA:AA)
 
Upvote 0
Assuming you have MS365 and the HStack function, this is just a comma separated list of ranges, you can add more if you need more.
Excel Formula:
HSTACK('AE Level'!G:G, 'AE Level'!Z:Z, 'AE Level'!AA:AA)
correct MS365 - sorry as you can tell my skill set is poor lol So if i wanted to apply this to multiple line items what should i include? Thank you so much!
 
Upvote 0
correct MS365 - sorry as you can tell my skill set is poor lol So if i wanted to apply this to multiple line items what should i include? Thank you so much!
sorry i should have added - the last column i wish to pull is text heavy, is there a character limt here?
 
Upvote 0

Forum statistics

Threads
1,215,161
Messages
6,123,378
Members
449,097
Latest member
Jabe

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