Computing.Net > Forums > Office Software > Simple VBA formula

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Simple VBA formula

Reply to Message Icon

Name: Sach1810
Date: July 14, 2009 at 11:24:38 Pacific
OS: Windows XP
Product: Microsoft Excel 2000/visual basic for applications fundamentals
Subcategory: Microsoft Office
Comment:

Hi I need a type fo sumif formula this works but it only uses d1 as the main reference point where I need it to pick up when there is what ever is in a1 and b1

If Worksheets("Sheet1").Range("d1,d10") = Sheet1.Range("a1") & " " & Sheet1.Range("b1") Then
Sheet1.Range("g1").Formula = "=sum(e1:e10)"
Else: Sheet1.Range("g1") = " "

thanks

Sacha



Sponsored Link
Ads by Google

Response Number 1
Name: DerbyDad03
Date: July 14, 2009 at 11:38:54 Pacific
Reply:

You need to explain yourself better, perhaps with some examples of input and output data.

You say "it only uses d1 as the main reference point",

yet you use "Range("d1,d10")" in your example.

I'm not familiar with the term main reference point when discussing SUMIF statements.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Simple VBA formula

need simple sum formula in MS excel www.computing.net/answers/office/need-simple-sum-formula-in-ms-excel/5584.html

Excel Formula, need help! www.computing.net/answers/office/excel-formula-need-help/6717.html

Reference to Sheet Name for Dynamic Button www.computing.net/answers/office/reference-to-sheet-name-for-dynamic-button/9318.html