Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Me Me is offline
external usenet poster
 
Posts: 67
Default How do I make this work? =IF(C11=TEXT,D11,D11-C11)*24

I'm making a timecard and cannot figure out how to make this formula work
correctly: =IF(C11=TEXT,D11,D11-C11)*24. If I use
=IF(C11="Sick",D11,D11-C11)*24 it works fine, but I have 4 different words I
need to use: Sick, Comp, Vacation, & Holiday. How can I make this work?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default How do I make this work? =IF(C11=TEXT,D11,D11-C11)*24

Try this:

=IF(ISTEXT(C11),D11,D11-C11)*24

HTH,
Elkar


"Me" wrote:

I'm making a timecard and cannot figure out how to make this formula work
correctly: =IF(C11=TEXT,D11,D11-C11)*24. If I use
=IF(C11="Sick",D11,D11-C11)*24 it works fine, but I have 4 different words I
need to use: Sick, Comp, Vacation, & Holiday. How can I make this work?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Me Me is offline
external usenet poster
 
Posts: 67
Default How do I make this work? =IF(C11=TEXT,D11,D11-C11)*24

It looks like it works. Thanks so much.

"Elkar" wrote:

Try this:

=IF(ISTEXT(C11),D11,D11-C11)*24

HTH,
Elkar


"Me" wrote:

I'm making a timecard and cannot figure out how to make this formula work
correctly: =IF(C11=TEXT,D11,D11-C11)*24. If I use
=IF(C11="Sick",D11,D11-C11)*24 it works fine, but I have 4 different words I
need to use: Sick, Comp, Vacation, & Holiday. How can I make this work?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 256
Default How do I make this work? =IF(C11=TEXT,D11,D11-C11)*24

So how does the formula change if it's Comp, Vacation, or Holiday? If
it doesn't, use Elkar's solution. Or,

=IF(OR(C11="Sick",C11="Comp",C11="Vacation",C11="H oliday"),D11,D11-
C11)

Of course this displays error for any other non-numeric value in C11.


On Oct 23, 6:57 pm, Me wrote:
I'm making a timecard and cannot figure out how to make this formula work
correctly: =IF(C11=TEXT,D11,D11-C11)*24. If I use
=IF(C11="Sick",D11,D11-C11)*24 it works fine, but I have 4 different words I
need to use: Sick, Comp, Vacation, & Holiday. How can I make this work?



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
Make table query will work in datasheet view but will not make tab WildlyHarry Excel Discussion (Misc queries) 0 August 28th 07 03:06 PM
Cant make it work Bama_Buc New Users to Excel 2 August 14th 06 08:43 PM
can't make it work, I need help kynhart Excel Worksheet Functions 2 October 19th 05 05:58 AM
Spin button in a work sheet - how do I make it work? [email protected] Excel Worksheet Functions 1 April 7th 05 08:43 PM
how to make this work if sum=5+n2 then sum becomes the value of s. michaell Excel Discussion (Misc queries) 1 January 26th 05 10:24 PM


All times are GMT +1. The time now is 02:46 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"