Solved

a different kind of find

Posted on 2015-01-27
4
89 Views
Last Modified: 2015-01-27
I hope there is an expert out there than can provide me with VBA for this.

I need to :

[Look in sheet named Blotter] for the Ref that is in Col 'V' in the Sheet Named TRYCA1 if found, in the same row find the word TICL then step one cell to the right and copy the data from that cell and put that in column 'W' in sheet TRYCA1.
if nothing is found leave cell blank.

so in sheet named Blotter in cell V2 is GSB150139610

try to find GSB150139610 in Sheet named TRYCA1

if found, on the same row find TICL

if found move one cell to the right and copy that cell contents to Sheet Blotter and put result in W2 if no data found leave blank.

Continue to look for all items in column V in Blotter.

File attached
Find.xlsx
0
Comment
Question by:Jagwarman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 24

Expert Comment

by:Phillip Burton
ID: 40572539
Assuming that the GSB figure is going to be in either column L or M, then

=IFERROR(OFFSET('TRYCA1 '!$A$1,IFERROR(MATCH(V2,'TRYCA1 '!L:L,0),MATCH(V2,'TRYCA1 '!M:M,0))-1,MATCH("TICL",INDIRECT("'TRYCA1 '!" & IFERROR(MATCH(V2,'TRYCA1 '!L:L,0),MATCH(V2,'TRYCA1 '!M:M,0))&":"&IFERROR(MATCH(V2,'TRYCA1 '!L:L,0),MATCH(V2,'TRYCA1 '!M:M,0))),0)),"")

Open in new window

0
 

Author Comment

by:Jagwarman
ID: 40572688
Hi Phillip

Thanks for that but looking at different files it appears they can be in any cell from J to P :-(
0
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 500 total points
ID: 40572713
Then I would like a helper column.

In cell X2 enter:

=IFERROR(MATCH(V2,'TRYCA1 '!J:J,0),IFERROR(MATCH(V2,'TRYCA1 '!K:K,0),IFERROR(MATCH(V2,'TRYCA1 '!L:L,0),IFERROR(MATCH(V2,'TRYCA1 '!M:M,0),IFERROR(MATCH(V2,'TRYCA1 '!N:N,0),IFERROR(MATCH(V2,'TRYCA1 '!O:O,0),IFERROR(MATCH(V2,'TRYCA1 '!P:P,0),-1)))))))

Open in new window


and cell W2 becomes:

=IFERROR(OFFSET('TRYCA1 '!$A$1,X2-1,MATCH("TICL",INDIRECT("'TRYCA1 '!" & X2&":"&X2),0)),"")
0
 

Author Comment

by:Jagwarman
ID: 40572746
wow that's brilliant thanks
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question