Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Excel macro or formula help

Posted on 2012-04-09
3
Medium Priority
?
350 Views
Last Modified: 2012-05-06
Excel macro or formula help
Attach file has users who have softwares

Where ever Yes it has to check the other sheet and calculate the cost and update the sheet

updated additional info in excel
thanks a lot in advancecost.xls
0
Comment
Question by:bsharath
3 Comments
 
LVL 10

Assisted Solution

by:ravindran_eee
ravindran_eee earned 664 total points
ID: 37823218
=IF(N2="YES",12000,0)+IF(O2="YES",2000,0)+IF(P2="YES",3000,0)+IF(Q2="YES",33000,0)+IF(R2="YES",2000,0)+IF(S2="YES",1000,0)+IF(T2="YES",33000,0)

Drag it to rest of the cells so that the formula applies for each row
0
 
LVL 43

Assisted Solution

by:Saqib Husain, Syed
Saqib Husain, Syed earned 668 total points
ID: 37823235
You can use this ARRAY formula

=SUMPRODUCT((N2:V2="Yes")*TRANSPOSE(Cost!$B$1:$B$9))

in row 2 and then copy down. But you will have to make sure that the costs on cost sheet are numbers and not text+numbers. see attached
Copy-of-cost.xls
0
 
LVL 50

Accepted Solution

by:
barry houdini earned 668 total points
ID: 37823320
This version can be used to avoid "array entry"

=SUMPRODUCT(MMULT((N2:V2="Yes")*1,Cost!$B$1:$B$9))

regards, barry
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

This article helps those who get the 0xc004d307 error when trying to rearm (reset the license) Office 2013 in a Virtual Desktop Infrastructure (VDI) and/or those trying to prep the master image for Microsoft Key Management (KMS) activation. (i.e.- C…
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

886 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