Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 38
Default Question on the formula

I would like to set up the formula based on three cells. I have data as
follows:

A B
10:34 Yes

In column C I would like to set up formula to get the differance between
column A1 and 11:00 based on the column B1. If B1 has yes then the
calculation has to happen, if B1 has No then the value in C1 should be equal
to A1. I have about 800 rows to calculate. Once I set the formula then I can
copy and paste.

Thank you in advance for your help.
Kimti
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Question on the formula

hi
you didn't specify if we are talking am or pm so i assume am
=if(B2="Yes",Time(11,00,00)-A2,A2)

excel formulas seldom likes formated dates and time within a formula so you
either have to put the time in another cell (example D2) and have the formula
like this..
=if(B2="yes", D2-A2,A2)
or use the time formula within the if formula as i did above.
the time formula uses military time ie hour = 0-23 with 0 being midnight and
23 being 11pm.

regards
FSt1

"Kimti" wrote:

I would like to set up the formula based on three cells. I have data as
follows:

A B
10:34 Yes

In column C I would like to set up formula to get the differance between
column A1 and 11:00 based on the column B1. If B1 has yes then the
calculation has to happen, if B1 has No then the value in C1 should be equal
to A1. I have about 800 rows to calculate. Once I set the formula then I can
copy and paste.

Thank you in advance for your help.
Kimti

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
Newbie Formula Question - how to get formula to repeat in each subsequent row? [email protected] New Users to Excel 2 January 10th 10 05:02 PM
Formula question GKW in GA Excel Discussion (Misc queries) 3 September 18th 07 04:52 PM
Formula Question emgVA Excel Discussion (Misc queries) 2 January 28th 07 12:40 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
"IF" formula question Barb1 Excel Worksheet Functions 2 April 5th 05 05:27 PM


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