• 100% Satisfaction Guarantee

Richard, Software Specialist
Category: Microsoft Office
Satisfied Customers: 27499
Experience:  Over 15 year experience resolving Microsoft Office Issues
32989067
Type Your Microsoft Office Question Here...
Richard is online now

# I need to write an Excel Macro to calculate interests on several

### Customer Question

I need to write an Excel Macro to calculate interests on several principal amts. My interest period is different for each principal amt. In most cases, there are multiple interest rates within an int period.

I have a list of principal amts and the int periods (start_date, end_date) in my 1st worksheet.

I have a table of Int Rates in my 2nd wksheet.

Now, i need to write a macro to calculate the interest....I am having a difficult time on how to go to my interest rate table and select the correct interest rates that falls within my interest period.

Can someone help. Thanks.
Submitted: 3 years ago.
Category: Microsoft Office
Expert:  Richard replied 3 years ago.
Thank you for your question, my name is Richard.

You will want to use a VLookup to return the Interest Rate.

So in your example, you would want a formula similar to this

=VLOOKUP(PERIOD HERE,RANGE FOR INTEREST RATES AND PERIOD,COLUMN IN RANGE THAT HAS THE VALUE)

So if the Interest sheet is Interest, and A and B have the Period and Rate, then your forumla is.

=vlookup(PERIOD YOU SEARCH,interest!a:interest!b ,2)

If you have any difficulties at all, please do not hesitate to let me know so I can assist you further

Thank you
Customer: replied 3 years ago.
Im not sure how this will work. Can i send u my spreadsheet. Also, please note i need a macro to calc since i will have to di this multiple times. Thanks
Expert:  Richard replied 3 years ago.

- Click the following link: http://www.wikisend.com
- Upload the file to that website
- Once it is uploaded, the resulting page will display a "File ID" number.
- Please, give me that "File ID Number"
Customer: replied 3 years ago.
Ok great will send this evening. Thanks.
Expert:  Richard replied 3 years ago.
ok thanks

Customer: replied 3 years ago.
I just sent u the link..hope u got it....couldnt find the reply to expert box on my cmp..
Expert:  Richard replied 3 years ago.
You need to tell me the File ID please in this message

- Click the following link: http://www.wikisend.com
- Upload the file to that website
- Once it is uploaded, the resulting page will display a "File ID" number.
- Please, give me that "File ID Number"
Customer: replied 3 years ago.
Its 903494...for some reason my phone allows me to reply but not my computer..the reply box doesnt show up.
Expert:  Richard replied 3 years ago.
Thanks

So which date in sheet1 do I use to show the rate to use?

Customer: replied 3 years ago.

ok..in sheet1, the 1st amountt is \$1,000 and I need to calculate the int from 1/1/2010 to 4/30/2013.

the 2nd is \$2,000.00..int from 5/1/2001 to 12/31/2011..and so on.

I need the macro to be able to go to the rates sheet and pick up the correct rates for each period so for instance, the rates for the 1st period will be the base on int interval l 1/1/2010 - 1/4/2012 @ 3.25%

1/5/2012- 9/13/2012 @ 3.25%

9/14/2012 - 4/30/2013 @ 3.25%

Now these happen to be the same rate for all the intervals, but in the 2nd amt for \$2,000, it is more complicated.

THanks.

Expert:  Richard replied 3 years ago.
ok, I need to log off now, as when I initially took this question it was a much earlier on.

Another Expert will pick this up and look at completing it for you.

You do not need to do anything, and they can review everything here.
Customer: replied 3 years ago.

ok..thank you

Customer: replied 3 years ago.

hi Richard..i just sent the link with the wiki id..hope u got it. thanks.

Expert:  Richard replied 3 years ago.
Customer: replied 3 years ago.
Expert:  Lindie-mod replied 3 years ago.
Hi, I’m a moderator for this topic. It seems the professional has left this conversation. This happens occasionally, and it's usually because the professional thinks that someone else might be a better match for your question. I've been working hard to find a new professional to assist you right away with your Excel issue, but sometimes finding the right professional can take a little longer than expected.

I wonder whether you're OK with continuing to wait for an answer. If you are, please let me know and I will continue my search. If not, feel free to let me know and I will cancel this question for you. Thank you!

Lindie
Customer: replied 3 years ago.
I can wait. Thanks
Expert:  Lindie-mod replied 3 years ago.
Hi

Thank you for your continued patience. We will continue the search for a professional for you.

Lindie
Customer: replied 3 years ago.
Expert:  Rachel-Mod replied 3 years ago.

Hello,

I apologize as we have not yet been able to find another professional to assist you. Would you like me to continue to search for someone to assist you or would you like for me to close your question at this time?

Customer: replied 3 years ago.
Please continue to look..i still have time. Thanks.
Expert:  Rachel-Mod replied 3 years ago.
Hello,
Please understand it is rare for us not to be able to find the right professionals to assist our customers. We can either return your good faith deposit to the original funding source, or we can keep your deposit on your account here for future questions.
Please let me know how you wish to proceed and again I apologize for any inconvenience this may have caused.
I hope you will give JustAnswer a try again in the future,
Rachel
Customer: replied 3 years ago.
Thanks for all ur help. I will like to get a refund please.

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

### What Customers are Saying:

• My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
< Previous | Next >
• My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
• Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
• This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
• Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
• I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
• Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
• Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland

• ### jstinehelfer

#### Satisfied Customers:

36
A+ Comptia Certified computer repair
< Last | Next >

### jstinehelfer

#### Satisfied Customers:

36
A+ Comptia Certified computer repair

### JasonJames122

#### Satisfied Customers:

0
I manage all information systems (network of Windows PC's and servers with Microsoft Office products) for a small business

### Jess M.

#### Satisfied Customers:

481
Computer Software Specialist for more than 10 years

### The-PC-Guy

#### Satisfied Customers:

450
20 years experience providing remote computer support

### James K.

#### Satisfied Customers:

260
Technical Director of IT Company

### IT Miro

#### Satisfied Customers:

147
Bachelor's Degree in Information Technology, Microsoft Certified Professional