#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Excel Error Message

I have been receiving this error message with the following formula. How do I
fix it? If I substitute the letter "A" for all of the text in parentheses,
the formula works.

=IF(E12=120,"Insulin Resistance / Diabetes, Lipidproteinemia, Hepatitis,
Liver Congestion, Acute Pulmonary Infarction, Extensive Pneumonia, Advanced
Cancer, Anemia, Lymphocytosis, Skeletal Muscle Dysfunction, Systemic
Conditions, Collagen Vascular Diseases, Omega-3 Fatty Acid Deficiency,
Hypertriglyceridemia, Alcoholism, Renal Dysfunction, Acute Pancreatitis,
Gout, Oral Contraceptives, Excess Fructose Consumption",IF(E12<120,""))

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Excel Error Message

Hi Danny

In 2003 you are limited to 1024 characters in a formula,
In 2007 the limit is 8192

So you can have your text in another cell and refer that in your formula

'With the text in cell F1
=IF(E12=120,F1,IF(E12<120,""))


If this post helps click Yes
---------------
Jacob Skaria


"Danny" wrote:

I have been receiving this error message with the following formula. How do I
fix it? If I substitute the letter "A" for all of the text in parentheses,
the formula works.

=IF(E12=120,"Insulin Resistance / Diabetes, Lipidproteinemia, Hepatitis,
Liver Congestion, Acute Pulmonary Infarction, Extensive Pneumonia, Advanced
Cancer, Anemia, Lymphocytosis, Skeletal Muscle Dysfunction, Systemic
Conditions, Collagen Vascular Diseases, Omega-3 Fatty Acid Deficiency,
Hypertriglyceridemia, Alcoholism, Renal Dysfunction, Acute Pancreatitis,
Gout, Oral Contraceptives, Excess Fructose Consumption",IF(E12<120,""))

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 236
Default Excel Error Message

Danny,

There surely must be a reason but still looks interesting the 2nd IF in the
formula:
IF(E12<120,"")

I thought that the 1st IF would take care of it as surely if E12 is not
=120, then it's <120 and just "" should be returned.

Wouldn't this work:
=IF(E12=120,F1,"")



"Jacob Skaria" wrote in message
...
Hi Danny

In 2003 you are limited to 1024 characters in a formula,
In 2007 the limit is 8192

So you can have your text in another cell and refer that in your formula

'With the text in cell F1
=IF(E12=120,F1,IF(E12<120,""))


If this post helps click Yes
---------------
Jacob Skaria


"Danny" wrote:

I have been receiving this error message with the following formula. How
do I
fix it? If I substitute the letter "A" for all of the text in
parentheses,
the formula works.

=IF(E12=120,"Insulin Resistance / Diabetes, Lipidproteinemia, Hepatitis,
Liver Congestion, Acute Pulmonary Infarction, Extensive Pneumonia,
Advanced
Cancer, Anemia, Lymphocytosis, Skeletal Muscle Dysfunction, Systemic
Conditions, Collagen Vascular Diseases, Omega-3 Fatty Acid Deficiency,
Hypertriglyceridemia, Alcoholism, Renal Dysfunction, Acute Pancreatitis,
Gout, Oral Contraceptives, Excess Fructose Consumption",IF(E12<120,""))

Thanks



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default Excel Error Message

Yes, =IF(E12=120,F1,""). I think Jacob just went along with the OP's
original structure as he addressed the area causing the problem (too much
text) and didn't actually pay attention to the formula itself... this is
quite a common thing which I'm sure all responders have done at one time or
another.

--
Rick (MVP - Excel)


"AB" wrote in message
...
Danny,

There surely must be a reason but still looks interesting the 2nd IF in
the formula:
IF(E12<120,"")

I thought that the 1st IF would take care of it as surely if E12 is not
=120, then it's <120 and just "" should be returned.

Wouldn't this work:
=IF(E12=120,F1,"")



"Jacob Skaria" wrote in message
...
Hi Danny

In 2003 you are limited to 1024 characters in a formula,
In 2007 the limit is 8192

So you can have your text in another cell and refer that in your formula

'With the text in cell F1
=IF(E12=120,F1,IF(E12<120,""))


If this post helps click Yes
---------------
Jacob Skaria


"Danny" wrote:

I have been receiving this error message with the following formula. How
do I
fix it? If I substitute the letter "A" for all of the text in
parentheses,
the formula works.

=IF(E12=120,"Insulin Resistance / Diabetes, Lipidproteinemia,
Hepatitis,
Liver Congestion, Acute Pulmonary Infarction, Extensive Pneumonia,
Advanced
Cancer, Anemia, Lymphocytosis, Skeletal Muscle Dysfunction, Systemic
Conditions, Collagen Vascular Diseases, Omega-3 Fatty Acid Deficiency,
Hypertriglyceridemia, Alcoholism, Renal Dysfunction, Acute Pancreatitis,
Gout, Oral Contraceptives, Excess Fructose Consumption",IF(E12<120,""))

Thanks




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 236
Default Excel Error Message

I belive so.
I would not dare to suggest that Jacob wouldn't have spotted that - there is
so much i can learn from Jacobs posts here.


"Rick Rothstein" wrote in message
...
Yes, =IF(E12=120,F1,""). I think Jacob just went along with the OP's
original structure as he addressed the area causing the problem (too much
text) and didn't actually pay attention to the formula itself... this is
quite a common thing which I'm sure all responders have done at one time
or another.

--
Rick (MVP - Excel)


"AB" wrote in message
...
Danny,

There surely must be a reason but still looks interesting the 2nd IF in
the formula:
IF(E12<120,"")

I thought that the 1st IF would take care of it as surely if E12 is not
=120, then it's <120 and just "" should be returned.

Wouldn't this work:
=IF(E12=120,F1,"")



"Jacob Skaria" wrote in message
...
Hi Danny

In 2003 you are limited to 1024 characters in a formula,
In 2007 the limit is 8192

So you can have your text in another cell and refer that in your formula

'With the text in cell F1
=IF(E12=120,F1,IF(E12<120,""))


If this post helps click Yes
---------------
Jacob Skaria


"Danny" wrote:

I have been receiving this error message with the following formula.
How do I
fix it? If I substitute the letter "A" for all of the text in
parentheses,
the formula works.

=IF(E12=120,"Insulin Resistance / Diabetes, Lipidproteinemia,
Hepatitis,
Liver Congestion, Acute Pulmonary Infarction, Extensive Pneumonia,
Advanced
Cancer, Anemia, Lymphocytosis, Skeletal Muscle Dysfunction, Systemic
Conditions, Collagen Vascular Diseases, Omega-3 Fatty Acid Deficiency,
Hypertriglyceridemia, Alcoholism, Renal Dysfunction, Acute
Pancreatitis,
Gout, Oral Contraceptives, Excess Fructose Consumption",IF(E12<120,""))

Thanks








  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Excel Error Message

Hmmm...

That's strange. The formula length as posted, LEN() = 435, is nowhere near
the formula length limit yet you get the warning.

If you put all that text in a cell and refer to that cell it works fine.
There seems to be a limit on the length of a string as a hardcoded argument.
255 characters works ok, 255 characters then Excel complains

A1 = long string of text

=IF(E12=120,A1,"")

--
Biff
Microsoft Excel MVP


"AB" wrote in message
...
I belive so.
I would not dare to suggest that Jacob wouldn't have spotted that - there
is so much i can learn from Jacobs posts here.


"Rick Rothstein" wrote in message
...
Yes, =IF(E12=120,F1,""). I think Jacob just went along with the OP's
original structure as he addressed the area causing the problem (too much
text) and didn't actually pay attention to the formula itself... this is
quite a common thing which I'm sure all responders have done at one time
or another.

--
Rick (MVP - Excel)


"AB" wrote in message
...
Danny,

There surely must be a reason but still looks interesting the 2nd IF in
the formula:
IF(E12<120,"")

I thought that the 1st IF would take care of it as surely if E12 is not
=120, then it's <120 and just "" should be returned.
Wouldn't this work:
=IF(E12=120,F1,"")



"Jacob Skaria" wrote in message
...
Hi Danny

In 2003 you are limited to 1024 characters in a formula,
In 2007 the limit is 8192

So you can have your text in another cell and refer that in your
formula

'With the text in cell F1
=IF(E12=120,F1,IF(E12<120,""))


If this post helps click Yes
---------------
Jacob Skaria


"Danny" wrote:

I have been receiving this error message with the following formula.
How do I
fix it? If I substitute the letter "A" for all of the text in
parentheses,
the formula works.

=IF(E12=120,"Insulin Resistance / Diabetes, Lipidproteinemia,
Hepatitis,
Liver Congestion, Acute Pulmonary Infarction, Extensive Pneumonia,
Advanced
Cancer, Anemia, Lymphocytosis, Skeletal Muscle Dysfunction, Systemic
Conditions, Collagen Vascular Diseases, Omega-3 Fatty Acid Deficiency,
Hypertriglyceridemia, Alcoholism, Renal Dysfunction, Acute
Pancreatitis,
Gout, Oral Contraceptives, Excess Fructose
Consumption",IF(E12<120,""))

Thanks







  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Excel Error Message

Thanks, Jacob,
I still don't understand why I get the message, since there are only about
600 characters in the formula including the spaces. I'll try the F1 deal.
Danny

"Jacob Skaria" wrote:

Hi Danny

In 2003 you are limited to 1024 characters in a formula,
In 2007 the limit is 8192

So you can have your text in another cell and refer that in your formula

'With the text in cell F1
=IF(E12=120,F1,IF(E12<120,""))


If this post helps click Yes
---------------
Jacob Skaria


"Danny" wrote:

I have been receiving this error message with the following formula. How do I
fix it? If I substitute the letter "A" for all of the text in parentheses,
the formula works.

=IF(E12=120,"Insulin Resistance / Diabetes, Lipidproteinemia, Hepatitis,
Liver Congestion, Acute Pulmonary Infarction, Extensive Pneumonia, Advanced
Cancer, Anemia, Lymphocytosis, Skeletal Muscle Dysfunction, Systemic
Conditions, Collagen Vascular Diseases, Omega-3 Fatty Acid Deficiency,
Hypertriglyceridemia, Alcoholism, Renal Dysfunction, Acute Pancreatitis,
Gout, Oral Contraceptives, Excess Fructose Consumption",IF(E12<120,""))

Thanks

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Excel Error Message

I still don't understand why I get the message,

See my earlier reply.

--
Biff
Microsoft Excel MVP


"Danny" wrote in message
...
Thanks, Jacob,
I still don't understand why I get the message, since there are only about
600 characters in the formula including the spaces. I'll try the F1 deal.
Danny

"Jacob Skaria" wrote:

Hi Danny

In 2003 you are limited to 1024 characters in a formula,
In 2007 the limit is 8192

So you can have your text in another cell and refer that in your formula

'With the text in cell F1
=IF(E12=120,F1,IF(E12<120,""))


If this post helps click Yes
---------------
Jacob Skaria


"Danny" wrote:

I have been receiving this error message with the following formula.
How do I
fix it? If I substitute the letter "A" for all of the text in
parentheses,
the formula works.

=IF(E12=120,"Insulin Resistance / Diabetes, Lipidproteinemia,
Hepatitis,
Liver Congestion, Acute Pulmonary Infarction, Extensive Pneumonia,
Advanced
Cancer, Anemia, Lymphocytosis, Skeletal Muscle Dysfunction, Systemic
Conditions, Collagen Vascular Diseases, Omega-3 Fatty Acid Deficiency,
Hypertriglyceridemia, Alcoholism, Renal Dysfunction, Acute
Pancreatitis,
Gout, Oral Contraceptives, Excess Fructose Consumption",IF(E12<120,""))

Thanks



  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Excel Error Message

Try breaking your string into smaller strings.

=IF(E12=120,"long string1 "&"longstring2 "&"longstring3",if(e12<120,""))

I could break your long string into 2 pieces.

It broke he
Diseases, "&"Omega-3 Fatty

(but I couldn't make the post look nice because of the way it would wrap.)

Danny wrote:

I have been receiving this error message with the following formula. How do I
fix it? If I substitute the letter "A" for all of the text in parentheses,
the formula works.

=IF(E12=120,"Insulin Resistance / Diabetes, Lipidproteinemia, Hepatitis,
Liver Congestion, Acute Pulmonary Infarction, Extensive Pneumonia, Advanced
Cancer, Anemia, Lymphocytosis, Skeletal Muscle Dysfunction, Systemic
Conditions, Collagen Vascular Diseases, Omega-3 Fatty Acid Deficiency,
Hypertriglyceridemia, Alcoholism, Renal Dysfunction, Acute Pancreatitis,
Gout, Oral Contraceptives, Excess Fructose Consumption",IF(E12<120,""))

Thanks


--

Dave Peterson
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
EXCEL ERROR MESSAGE kadmin Excel Discussion (Misc queries) 4 January 30th 07 05:06 PM
Excel error message David Stoughton Excel Discussion (Misc queries) 4 January 19th 07 08:31 PM
Excel Error Message LCG Excel Discussion (Misc queries) 1 October 20th 06 08:46 PM
Excel error message Safi Excel Worksheet Functions 1 June 29th 06 12:46 PM
Excel error message Michael Flowers Excel Discussion (Misc queries) 0 June 28th 05 09:50 PM


All times are GMT +1. The time now is 05:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"