Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default query information

I'm not really sure how to ask this but I will try. I'm quering information
from a website. I'm taking the information of devices being on and off and
trying to calculate that into daily expense of running that individual peice
of equipment. So I guess I'm looking for a code that says something like If
A1 = On then I put in my formula to calculate Kiliwatt hours. Sorr if this is
confusing
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default query information

Not sure exactly what you are asking but..
Public Function TotalPower (argDevices As Range) As single
dim cell as range
dim temppower as single
for each cell in argdevices
if lcase(cell.value)="on" then
temppower =temppower +1 'Or however you calculate the power
end if
next
TotalPower=temppower
End function

NickHK

"tinytol" wrote in message
...
I'm not really sure how to ask this but I will try. I'm quering

information
from a website. I'm taking the information of devices being on and off and
trying to calculate that into daily expense of running that individual

peice
of equipment. So I guess I'm looking for a code that says something like

If
A1 = On then I put in my formula to calculate Kiliwatt hours. Sorr if this

is
confusing



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I sort the information returned from a query? Fortarel Excel Discussion (Misc queries) 2 June 29th 09 11:23 PM
How do you get information from an Excel Web Query into Access? DoveArrow Excel Worksheet Functions 3 December 7th 07 01:48 AM
Getting Information from a query in ACCESS Debbie[_2_] Excel Worksheet Functions 2 February 24th 07 01:11 AM
query information tinytol New Users to Excel 0 July 13th 06 05:20 AM
How locate connection information for web query? quartz[_2_] Excel Programming 20 December 6th 04 08:00 PM


All times are GMT +1. The time now is 07:11 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"