Find a text string in a sheet and return its location (column, row)

BobMillar68

New Member
Joined
Jan 8, 2018
Messages
2
I am trying to convert an invoice summary spreadsheet into something I can import into another system. The original file has data which is located in different places on different tabs so I want to search each tab for a specific text string and then either return the value in the nth cell to the right of the text string, or perhaps use Indirect with a cell reference using the returned column and row). I have not found a way to search and return the field's location.

I have seen a reference to the Range.Find method elsewhere but I am not particularly proficient with VBA so was hoping to just use formulae to achieve the same thing.
I can't use VLOOKUP as I can't predict what column the text will be in.

For example:

In one sheet the text "VAT" may be in cell AH29 and the VAT value in AI29 while in another "VAT" might be in AG30 and the VAT value in AH30.

Thanks

Bob
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
try this, amend the range to suit


Excel 2013/2016
ABCDEFGHIJKLMNOPQR
1
2
3
4
5
6VAT
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21VAT$D$6
216
Cell Formulas
RangeFormula
B21{=ADDRESS(MAX((A1:R20=A21)*ROW(A1:A20)), MAX((A1:R20=A21)*COLUMN(A1:R1)))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,864
Messages
6,121,986
Members
449,058
Latest member
oculus

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