sarkocreme
New Member
- Joined
- Dec 14, 2009
- Messages
- 9
I have a table that looks like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]refrigerator
[/TD]
[TD]=vlookup(randbetween(1,4),worksheet!$A1:$B4,2,false)
[/TD]
[/TR]
</tbody>[/TABLE]
The vlookup where it's seeking (worksheet!$A1:$B4) this looks like:
[TABLE="width: 500"]
<tbody>[TR]
[TD]1
[/TD]
[TD]"Buy a "&INDIRECT(ADDRESS(ROW(),COLUMN()-1))&" from us"
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]"Everything we sell is great"
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]"The best warranty ever"
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]Best "&INDIRECT(ADDRESS(ROW(),COLUMN()-1))
[/TD]
[/TR]
</tbody>[/TABLE]
In the cases of rows #1 and #4 I want to return "refrigerator" for the INDIRECT formula. As written it will return "1" and "4" respectively since it runs relative to its local position. How can I run it local to the vlookup?
[TABLE="width: 500"]
<tbody>[TR]
[TD]refrigerator
[/TD]
[TD]=vlookup(randbetween(1,4),worksheet!$A1:$B4,2,false)
[/TD]
[/TR]
</tbody>[/TABLE]
The vlookup where it's seeking (worksheet!$A1:$B4) this looks like:
[TABLE="width: 500"]
<tbody>[TR]
[TD]1
[/TD]
[TD]"Buy a "&INDIRECT(ADDRESS(ROW(),COLUMN()-1))&" from us"
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]"Everything we sell is great"
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]"The best warranty ever"
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]Best "&INDIRECT(ADDRESS(ROW(),COLUMN()-1))
[/TD]
[/TR]
</tbody>[/TABLE]
In the cases of rows #1 and #4 I want to return "refrigerator" for the INDIRECT formula. As written it will return "1" and "4" respectively since it runs relative to its local position. How can I run it local to the vlookup?