Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
AC man
 
Posts: n/a
Default What is wrong with this IF formula, it worked fine for a while?

Here is the formula that worked fine for a while now it wont work.

=IF(G6<101,"6"",IF(AND(G6101.1,G6<151),"7"",IF(AN D(G6151.1,G6<201),"8"",IF(AND(G6200.1,G6<275.1), "9"",IF(AND(G6275.2,G6<350.1),"10"",IF(AND(G6350 .2,G6<600.1),"12"",)))))

It keeps going back to the "7"" here-------------^ and highlighting it.
It worked fine for a while then I added something and now I cannot figure
our what is wrong please help thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
David Billigmeier
 
Posts: n/a
Default What is wrong with this IF formula, it worked fine for a while?

You just have an extra quotation mark after each number, try this:

=IF(G6<101,"6",IF(AND(G6101.1,G6<151),"7",IF(AND( G6151.1,G6<201),"8",IF(AND(G6200.1,G6<275.1),"9" ,IF(AND(G6275.2,G6<350.1),"10",IF(AND(G6350.2,G6 <600.1),"12",))))))


--
Regards,
Dave


"AC man" wrote:

Here is the formula that worked fine for a while now it wont work.

=IF(G6<101,"6"",IF(AND(G6101.1,G6<151),"7"",IF(AN D(G6151.1,G6<201),"8"",IF(AND(G6200.1,G6<275.1), "9"",IF(AND(G6275.2,G6<350.1),"10"",IF(AND(G6350 .2,G6<600.1),"12"",)))))

It keeps going back to the "7"" here-------------^ and highlighting it.
It worked fine for a while then I added something and now I cannot figure
our what is wrong please help thanks.

  #3   Report Post  
Posted to microsoft.public.excel.misc
mphell0
 
Posts: n/a
Default What is wrong with this IF formula, it worked fine for a while?


Do the extra quotation marks denote inches?

If this is the case then I think you are confusing the machine by
having all the quotation marks. It is reading some of the functions as
text. Could you replace the quotation marks with "in" so it would read

"6 in"

instead of

"6""?


--
mphell0
------------------------------------------------------------------------
mphell0's Profile: http://www.excelforum.com/member.php...o&userid=30153
View this thread: http://www.excelforum.com/showthread...hreadid=499458

  #4   Report Post  
Posted to microsoft.public.excel.misc
mphell0
 
Posts: n/a
Default What is wrong with this IF formula, it worked fine for a while?


You can also add an extra quotation after the number to close out that
quote and it will return a value like 6".

The formula would look like

=IF(G6<101,"6""",... (Note the 3 quotation marks after 6.


--
mphell0
------------------------------------------------------------------------
mphell0's Profile: http://www.excelforum.com/member.php...o&userid=30153
View this thread: http://www.excelforum.com/showthread...hreadid=499458

  #5   Report Post  
Posted to microsoft.public.excel.misc
pinmaster
 
Posts: n/a
Default What is wrong with this IF formula, it worked fine for a while?

I noticed a few gaps in your formula, for instance
G6<151),IF(G6151.1
what happens if G6 is 151 or 151.1?? or G6 is over 601?
.....shouldn't it be
G6<=151),IF(G6=151.1
In any case, here's something a bit shorter that will do the same thing:
=LOOKUP(G6,{0,101.1,151.1,201.1,275.2,350.2,600.1} ,{6,7,8,9,10,12,0})&CHAR(34)
wasn't sure what happens when G6 is over 601 so I put a "0", change it to
suit your needs.

HTH
JG


"AC man" wrote:

Here is the formula that worked fine for a while now it wont work.

=IF(G6<101,"6"",IF(AND(G6101.1,G6<151),"7"",IF(AN D(G6151.1,G6<201),"8"",IF(AND(G6200.1,G6<275.1), "9"",IF(AND(G6275.2,G6<350.1),"10"",IF(AND(G6350 .2,G6<600.1),"12"",)))))

It keeps going back to the "7"" here-------------^ and highlighting it.
It worked fine for a while then I added something and now I cannot figure
our what is wrong please help thanks.



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
How do I write the formula to calculate someones time worked deusy Excel Worksheet Functions 3 November 16th 05 08:49 PM
Formula that will represent years & months worked Pam Excel Discussion (Misc queries) 5 August 29th 05 11:20 PM
Recalculating Formula - Getting the wrong answers skherzog Excel Discussion (Misc queries) 2 June 29th 05 12:31 PM
Paste is is copying in formula, but display is wrong. Matt Excel Discussion (Misc queries) 2 December 7th 04 08:37 PM
Paste is is copying in formula, but display is wrong. Matt Excel Worksheet Functions 2 December 7th 04 08:37 PM


All times are GMT +1. The time now is 03:55 AM.

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"