Solved

excel macro

Posted on 2014-04-04
3
271 Views
Last Modified: 2014-04-04
Hello,

I need help with excel macro.
Please see attached file.
What I need is:
1. look in spreadsheet and if A2 & B2 = G (any) & H (any) take correct (I) and put in E2, loop,
check another record etc.
I have around 200 records both sections.
Example,
A2=1a
B2=CR
match
G5, H5
put 1 into E2

thanks
test.xlsx
0
Comment
Question by:henryk123
  • 2
3 Comments
 
LVL 21

Accepted Solution

by:
Ejgil Hedegaard earned 500 total points
ID: 39978941
No need for VBA, a formula can do it.
=SUMPRODUCT(($G$2:$G$12=A2)*($H$2:$H$12=B2)*$I$2:$I$12)
0
 

Author Comment

by:henryk123
ID: 39978969
hmm......
What can I say, FANTASTIC !!!

thanks
0
 

Author Closing Comment

by:henryk123
ID: 39978971
Great Job.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
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.

809 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