Solved

Macro error - Cannot see mistake

Posted on 2016-08-19
2
26 Views
Last Modified: 2016-08-19
Hi Experts Using Excel 2013

Cannot see the error here...

Range("A2:A" & LastRow).Formula = "=IF(IFERROR(OFFSET(Data!DQ84,MATCH(B84,Data!$DP$2:$DP$2000,0),-82),"")=0,A2)),"""")"

Open in new window

0
Comment
Question by:route217
2 Comments
 
LVL 11

Accepted Solution

by:
Máté Farkas earned 500 total points
Comment Utility
You always have to use double quotes in code:
Range("A2:A" & LastRow).Formula = "=IF(IFERROR(OFFSET(Data!DQ84,MATCH(B84,Data!$DP$2:$DP$2000,0),-82),"""")=0,A2, """")"

Open in new window

0
 

Author Comment

by:route217
Comment Utility
thanks for the feedback
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

772 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now