Excel VB code

5 pts.
Tags:
Excel VB code
VB
I would like to know how can I create a VB code in excel for this task: I have two columns with day and tem values Day   Temp 10.4  4.3 11.5  6.7 etc I want to select those day values that have a decimal 5 (10.5, 5.5, 3.5, etc) with its respective temp value Can someone help me???

Software/Hardware used:
Excel 2007

Answer Wiki

Thanks. We'll let you know when a new response is added.

On the basis of KeepItSimpleStupid, have you considered using conditional formatting?

If you are keeping track of temperatures on an hourly basis per day, make cells A2, A3, A4……….A366(7) your dates and the hours columns are B1, C1, D1…………Z1. In cell AB1 place the figure 0.5.

Select the cells in the range B2:Z368 and format for Number with 1 decimal place. Whilst this range is selected, go to Format, Conditional Formatting, Formula Is =IF(B2-INT(B2)=$AB$1,TRUE,0) You can then select whichever format suits your needs. As you input your temperatures this formatting should apply to all temperatures ending in .5 .

Trusting that this is of some assistance, regards l.p52@hotmail.com

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following