×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

function or conditional

function or conditional

function or conditional

(OP)
I am trying to accomplish something that seems simple in a spreadsheet but I am having the most difficult time returning good result.

Here is my goal

Column E contains a value representing Hours
Column F contains a YES or No representing preventive maintenance or not.

I want to get column H to list the hours if F from same row is Yes.

I want to get column I to list the hours if F from same row is No.

I have tried IF, Lookup, Hlookup....
I could get the no to work ok but I cannot get the yes to work, it displays a value no matter what I try.

Here is what almost works - [in h10]- LOOKUP("no",F10,E10)
But if I change "no" to "yes" it always gives a value.

Fill what's empty. Empty what's full. And scratch where it itches.

RE: function or conditional

(OP)
Sorry my title is misleading, I was going to ask should I try conditional or is there a function that works better for what I am trying to do?

Fill what's empty. Empty what's full. And scratch where it itches.

RE: function or conditional

Easiest is to use if

H6   =if(F6="Yes",E6,0)
I6   =if(F6="No",E6,0)

Cheers

Greg Locock

Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.

RE: function or conditional

(OP)
Figures I was over complicating it.  Thanks Greg I appreciate it.

Fill what's empty. Empty what's full. And scratch where it itches.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login



News


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close