#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 117
Default Nesting formulas

Currently, these formulas are in D1, E1, D2, E2, D3, E3, D4 and E4,
respectively:

=IF(LEFT(A1,1)="1",IF(LEFT(C1,1)="0",LEFT(C1,3)&MI D(C1,5,3),"000000"))
=IF(LEFT(A1,1)="1",IF(LEFT(C1,1)="0","0000000","0" &LEFT(C1,2)&MID
(C1,4,4)))


=IF(LEFT(A2,1)="6","000000","000000")
=IF(LEFT(A2,1)="6",IF(LEFT(C2,1)="0","0"&LEFT(C2,3 )&MID
(C2,5,3),"0"&LEFT(C2,2)&MID(C2,4,4)))


=IF(LEFT(A3,1)="1",IF(LEFT(C3,1)="0",LEFT(C3,3)&MI D(C3,5,3),"000000"))
=IF(LEFT(A3,1)="1",IF(LEFT(C3,1)="0","0000000","0" &LEFT(C3,2)&MID
(C3,4,4)))


=IF(LEFT(A4,1)="6","000000","000000")
=IF(LEFT(A4,1)="6",IF(LEFT(C4,1)="0","0"&LEFT(C4,3 )&MID
(C4,5,3),"0"&LEFT(C4,2)&MID(4,4,4)))


How can I create one formula by nesting each pair of formulas?





  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Nesting formulas

It isn't clear what you want to do with the nesting. You currently have one
result in D1 and a different result in E1. What result do you want, and in
which cell?

It also isn't clear why you have =IF(LEFT(A2,1)="6","000000","000000")
rather than just ="000000"

You might also note that you don't need the ,1 in the LEFT functions; it
defaults to ,1 if not otherwise spacified.
--
David Biddulph

GARY wrote:
Currently, these formulas are in D1, E1, D2, E2, D3, E3, D4 and E4,
respectively:

=IF(LEFT(A1,1)="1",IF(LEFT(C1,1)="0",LEFT(C1,3)&MI D(C1,5,3),"000000"))
=IF(LEFT(A1,1)="1",IF(LEFT(C1,1)="0","0000000","0" &LEFT(C1,2)&MID
(C1,4,4)))


=IF(LEFT(A2,1)="6","000000","000000")
=IF(LEFT(A2,1)="6",IF(LEFT(C2,1)="0","0"&LEFT(C2,3 )&MID
(C2,5,3),"0"&LEFT(C2,2)&MID(C2,4,4)))


=IF(LEFT(A3,1)="1",IF(LEFT(C3,1)="0",LEFT(C3,3)&MI D(C3,5,3),"000000"))
=IF(LEFT(A3,1)="1",IF(LEFT(C3,1)="0","0000000","0" &LEFT(C3,2)&MID
(C3,4,4)))


=IF(LEFT(A4,1)="6","000000","000000")
=IF(LEFT(A4,1)="6",IF(LEFT(C4,1)="0","0"&LEFT(C4,3 )&MID
(C4,5,3),"0"&LEFT(C4,2)&MID(4,4,4)))


How can I create one formula by nesting each pair of formulas?



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
Nesting Formulas Annie Excel Worksheet Functions 6 June 25th 08 12:49 AM
Nesting formulas Ashkore New Users to Excel 1 March 7th 08 10:19 PM
nesting formulas cinvic[_2_] Excel Worksheet Functions 2 February 1st 08 05:48 PM
nesting formulas Vladimir Excel Worksheet Functions 1 September 7th 06 09:25 PM
Nesting Formulas PLCProgrammer Excel Worksheet Functions 2 February 3rd 05 10:29 PM


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