#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 31
Default If Formula

I currently have a formula:

=IF(C26="","",LEN(C26)-LEN(SUBSTITUTE(C26,";",""))+1)

But I need to add another function to it somehow and I'm striking out. I
need to include that if C26="-All Clubs",54. I need to place the number 54
into the formula field if the data in C26 is equal to "-All Clubs" yet still
have it count the ";" for all other data that will be input.

Any suggestions? -- THANKS!
--
Krista
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default If Formula

=IF(C26="","",IF(C26="-All
Clubs",54,LEN(C26)-LEN(SUBSTITUTE(C26,";",""))+1))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Krista" wrote in message
...
I currently have a formula:

=IF(C26="","",LEN(C26)-LEN(SUBSTITUTE(C26,";",""))+1)

But I need to add another function to it somehow and I'm striking out. I
need to include that if C26="-All Clubs",54. I need to place the number

54
into the formula field if the data in C26 is equal to "-All Clubs" yet

still
have it count the ";" for all other data that will be input.

Any suggestions? -- THANKS!
--
Krista



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 31
Default If Formula

(I received an error on my initial post, which is why there are 2.) Anyway,
I tried your formula and it comes up with 1, not 54.

Any other thoughts?

TIA
--
Krista


"Bob Phillips" wrote:

=IF(C26="","",IF(C26="-All
Clubs",54,LEN(C26)-LEN(SUBSTITUTE(C26,";",""))+1))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Krista" wrote in message
...
I currently have a formula:

=IF(C26="","",LEN(C26)-LEN(SUBSTITUTE(C26,";",""))+1)

But I need to add another function to it somehow and I'm striking out. I
need to include that if C26="-All Clubs",54. I need to place the number

54
into the formula field if the data in C26 is equal to "-All Clubs" yet

still
have it count the ";" for all other data that will be input.

Any suggestions? -- THANKS!
--
Krista




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default If Formula

What do you have in C26?

Biff

"Krista" wrote in message
...
(I received an error on my initial post, which is why there are 2.)
Anyway,
I tried your formula and it comes up with 1, not 54.

Any other thoughts?

TIA
--
Krista


"Bob Phillips" wrote:

=IF(C26="","",IF(C26="-All
Clubs",54,LEN(C26)-LEN(SUBSTITUTE(C26,";",""))+1))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Krista" wrote in message
...
I currently have a formula:

=IF(C26="","",LEN(C26)-LEN(SUBSTITUTE(C26,";",""))+1)

But I need to add another function to it somehow and I'm striking out.
I
need to include that if C26="-All Clubs",54. I need to place the
number

54
into the formula field if the data in C26 is equal to "-All Clubs" yet

still
have it count the ";" for all other data that will be input.

Any suggestions? -- THANKS!
--
Krista






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 31
Default If Formula

This field will be populated from an outside source and will contain a series
of names seperated with ";" or "-All Clubs". I need C27 to then count the
number of ";"+1 for the first type of data or 54 for "-All Clubs".

Hope this helps to clarify.
--
Krista


"Biff" wrote:

What do you have in C26?

Biff

"Krista" wrote in message
...
(I received an error on my initial post, which is why there are 2.)
Anyway,
I tried your formula and it comes up with 1, not 54.

Any other thoughts?

TIA
--
Krista


"Bob Phillips" wrote:

=IF(C26="","",IF(C26="-All
Clubs",54,LEN(C26)-LEN(SUBSTITUTE(C26,";",""))+1))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Krista" wrote in message
...
I currently have a formula:

=IF(C26="","",LEN(C26)-LEN(SUBSTITUTE(C26,";",""))+1)

But I need to add another function to it somehow and I'm striking out.
I
need to include that if C26="-All Clubs",54. I need to place the
number
54
into the formula field if the data in C26 is equal to "-All Clubs" yet
still
have it count the ";" for all other data that will be input.

Any suggestions? -- THANKS!
--
Krista








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default If Formula

That was NG wrap-around, you needed to patch it. Try this version

=IF(C26="","",
IF(C26="-All Clubs",54,
LEN(C26)-LEN(SUBSTITUTE(C26,";",""))+1))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Krista" wrote in message
...
(I received an error on my initial post, which is why there are 2.)

Anyway,
I tried your formula and it comes up with 1, not 54.

Any other thoughts?

TIA
--
Krista


"Bob Phillips" wrote:

=IF(C26="","",IF(C26="-All
Clubs",54,LEN(C26)-LEN(SUBSTITUTE(C26,";",""))+1))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Krista" wrote in message
...
I currently have a formula:

=IF(C26="","",LEN(C26)-LEN(SUBSTITUTE(C26,";",""))+1)

But I need to add another function to it somehow and I'm striking out.

I
need to include that if C26="-All Clubs",54. I need to place the

number
54
into the formula field if the data in C26 is equal to "-All Clubs" yet

still
have it count the ";" for all other data that will be input.

Any suggestions? -- THANKS!
--
Krista






  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 31
Default If Formula

Perfect -- THANK YOU sooo much!

--
Krista


"Bob Phillips" wrote:

That was NG wrap-around, you needed to patch it. Try this version

=IF(C26="","",
IF(C26="-All Clubs",54,
LEN(C26)-LEN(SUBSTITUTE(C26,";",""))+1))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Krista" wrote in message
...
(I received an error on my initial post, which is why there are 2.)

Anyway,
I tried your formula and it comes up with 1, not 54.

Any other thoughts?

TIA
--
Krista


"Bob Phillips" wrote:

=IF(C26="","",IF(C26="-All
Clubs",54,LEN(C26)-LEN(SUBSTITUTE(C26,";",""))+1))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Krista" wrote in message
...
I currently have a formula:

=IF(C26="","",LEN(C26)-LEN(SUBSTITUTE(C26,";",""))+1)

But I need to add another function to it somehow and I'm striking out.

I
need to include that if C26="-All Clubs",54. I need to place the

number
54
into the formula field if the data in C26 is equal to "-All Clubs" yet
still
have it count the ";" for all other data that will be input.

Any suggestions? -- THANKS!
--
Krista






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
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 AM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM


All times are GMT +1. The time now is 08:11 AM.

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"