Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / March 2008

Tip: Looking for answers? Try searching our database.

condition formula

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kareinia - 08 Mar 2008 12:55 GMT
Could someone help me with this condition formula?

I need
If B10 equals, Boat  or a  Boat trailer, then add the hours of c10 into d10

I would appreciate any help that you can give me.

Thanks so much!
Sandy Mann - 08 Mar 2008 13:02 GMT
=IF(OR(B10="Boat",B10="Boat trailer"),C10+D10,"")

or if B10 will never contain any other Boat anything:

=IF(LEFT(B10,4)="Boat",C10+D10,"")

Signature

HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

sandymann2@mailinator.com
Replace @mailinator.com with @tiscali.co.uk

> Could someone help me with this condition formula?
>
[quoted text clipped - 5 lines]
>
> Thanks so much!
Kareinia - 08 Mar 2008 13:55 GMT
I'm sorry to bother you again, but will you look at the reply that I wrote
exactly how the spread sheet works?
I used your formula and changed the column ids to match the columns that I
need...
It's picking up the boat trailer's hours, but it is not picking up the hours
if column B has a boat listed....
This is what I put in....

=IF(OR(B7="Boat",B7="Boat Trailer"),+S7,"")

What am I doing wrong?   S7 =the total hours that I want picked up and put
in V7

> =IF(OR(B10="Boat",B10="Boat trailer"),C10+D10,"")
>
[quoted text clipped - 11 lines]
> >
> > Thanks so much!
Mike H - 08 Mar 2008 13:05 GMT
Maybe

=IF(LEFT(B10,5)="boat",C10+D10,"")

Mike

> Could someone help me with this condition formula?
>
[quoted text clipped - 4 lines]
>
> Thanks so much!
Kareinia - 08 Mar 2008 13:28 GMT
I don't think I worded it right, because it's not working....I used the
columns as examples and I would just change column id's

See below how the sheet is actually set up.

Column B=list of equipment  (Example:  Boat, Boat Trailer, Truck and etc.)
Columns C through O=hours being charged to the equipment
Column S has the total hours for each piece of equipment
I want to pick up the total hours for the boats or the boat trailers and put
them in Column V on the same line that the boat or boat trailer was charged.  
This way I can have the total hours charged just for the boats and trailers
in column V.

I hope this made sense...I'm really not at this...
I appreciate your help, especially on a Saturday morning...

> Maybe
>
[quoted text clipped - 10 lines]
> >
> > Thanks so much!
Mike H - 08 Mar 2008 13:47 GMT
Another attempt, Try this in V1

=SUMPRODUCT((LEFT(B1:B100,4)="Boat")*(S1:S100))

Alter the ranges to suit.

Mike

> I don't think I worded it right, because it's not working....I used the
> columns as examples and I would just change column id's
[quoted text clipped - 26 lines]
> > >
> > > Thanks so much!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.