#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Combining 2 Formulas

I am having trouble combining two formulas to make one. The following
formulas each work but combining them results in ######. Example of what I am
calculating: Cell D9 is 10051202, cell D10 is 13286500, cell J9 is 17:05,
cell J10 is also 17:05 and cell J11 is 17:07. Is there anyway to combine the
two so it will calculate differently if D9 is not equal to 10051202? It will
also have to be combined with this formula as well.

=IF($D1=13328000,$J2-$J1,IF($D1=13328100,$J2-$J1,IF($D1=13328200,$J2-$J1,IF($D1=13280300,$J2-$J1,IF($D1=13280800,$J2-$J1,IF($D1=13288100,$J2-$J1))))))

=IF(($D9<10051202)*($D10=13286500),$J11-$J10) This works alone

=IF(($D9=10051202)*($D10=13286500),$J9-$J10) This works alone

=IF(($D9<10051202)*($D10=13286500),$J11-$J10),IF(($D9=10051202)*($D10=13286500),$J9-$J10) They do not work when combined

Thank you for your help
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Combining 2 Formulas

Forget the IFs and for your combined formula (last in your message) use
=($D9<10051202)*($D10=13286500)*($J11-$J10)+($D9=10051202)*($D10=13286500)*($J9-$J10)
which can be simplified to
=(($D9<10051202)*($J11-$J10)+($D9=10051202)*($J9-$J10))*($D10=13286500)
Your first formula can also be treated this way
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Joker" wrote in message
...
I am having trouble combining two formulas to make one. The following
formulas each work but combining them results in ######. Example of what I
am
calculating: Cell D9 is 10051202, cell D10 is 13286500, cell J9 is 17:05,
cell J10 is also 17:05 and cell J11 is 17:07. Is there anyway to combine
the
two so it will calculate differently if D9 is not equal to 10051202? It
will
also have to be combined with this formula as well.

=IF($D1=13328000,$J2-$J1,IF($D1=13328100,$J2-$J1,IF($D1=13328200,$J2-$J1,IF($D1=13280300,$J2-$J1,IF($D1=13280800,$J2-$J1,IF($D1=13288100,$J2-$J1))))))

=IF(($D9<10051202)*($D10=13286500),$J11-$J10) This works alone

=IF(($D9=10051202)*($D10=13286500),$J9-$J10) This works alone

=IF(($D9<10051202)*($D10=13286500),$J11-$J10),IF(($D9=10051202)*($D10=13286500),$J9-$J10)
They do not work when combined

Thank you for your help



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
Combining formulas Krista Excel Discussion (Misc queries) 11 June 27th 06 03:13 AM
how can i get formulas in excel to copy and paste? bman Excel Worksheet Functions 1 October 3rd 05 04:15 PM
Array Formulas take waaaay too long... belly0fdesire Excel Worksheet Functions 7 August 8th 05 10:11 PM
calculating formulas for all workbooks in a folder Chad Excel Worksheet Functions 3 November 13th 04 05:22 PM
combining countif formulas Liz G Excel Worksheet Functions 3 November 1st 04 09:34 PM


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