Lookup Row 3 Column "amz" - Result Side by Side

  • Thread starter Thread starter Steven Ellet
  • Start date Start date
  • Tags Tags
    Data Excel
Click For Summary

Discussion Overview

The discussion revolves around how to lookup values from specific cells in a spreadsheet, particularly focusing on concatenating values from row 3 corresponding to the columns labeled "a", "m", and "z". The context includes both Excel formulas and VBA programming approaches.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant seeks a method to lookup values from row 3, specifically for the input "amz", and expects the output to be a concatenated string of the values from columns "a", "m", and "z".
  • Another participant provides a VBA macro example that concatenates values from specific cells, suggesting a method to achieve the desired output but does not clarify how to handle the "amz" input directly.
  • A different participant questions the meaning of "Column amz" in Excel, suggesting that concatenation can be achieved using expressions that reference the specific row and columns, but notes that parsing the "amz" part is complex.
  • One participant expresses a desire for a more efficient way to pull data from multiple cells, indicating a need for a solution that can handle larger datasets.
  • Another participant suggests structuring data as a database table and utilizing queries as a potential solution for efficiently accessing multiple cells.

Areas of Agreement / Disagreement

Participants present various methods and ideas for achieving the desired outcome, but there is no consensus on a single approach. The discussion includes differing views on the best way to handle the lookup and concatenation process.

Contextual Notes

There are unresolved aspects regarding the parsing of the "amz" input and the specific implementation details in Excel versus VBA. The discussion also touches on the limitations of using Excel formulas for this task.

Steven Ellet
Messages
85
Reaction score
3
If I want to lookup row 3 column "amz" and the end result will be side by side, how do i do that Example: a=.4 m=.91 z=.22
input; amz
output: .4.91.22
 
Computer science news on Phys.org
Don't know how you would do it in Excel formulas but here's how you do it in VBA (as an example)

I've put the kind of strings you show into 3 consecutive cells:
string1.JPG


Then created a VBA macro:
Code:
Sub string1()
  Dim a As String
  a = Cells(2, 4)
  MsgBox Cells(2, 4) & Cells(2, 5) & Cells(2, 6)
End Sub

and the result is ".1.2.3"
 
Steven Ellet said:
If I want to lookup row 3 column "amz" and the end result will be side by side, how do i do that Example: a=.4 m=.91 z=.22
input; amz
"Column amz" is meaningless in Excel. The only thing I can think of that has any meaning is (R3,Ca)&(R3,Cm)&(R3,Cz) In these expressions R=row, C=column and "&" means "concatenation" (strings joined together). Post #2 gives a hint as to how to do the concatenation, but parsing the "amz" part is tricky.
 
Well if what I was hoping for won't work then how can I quickly pull data from multiple cells, even if I have a lot of data to pull?
 
Steven Ellet said:
Well if what I was hoping for won't work then how can I quickly pull data from multiple cells, even if I have a lot of data to pull?
One way: Structure your data as a database table and do queries. The trick lies in indexing the data...
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 14 ·
Replies
14
Views
6K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K