Solved

excel macro

Posted on 2014-04-04
3
274 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
[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
3 Comments
 
LVL 22

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

726 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