Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default How do I return a text string when a calculation returns a non who

I need to display text "You must order in case quantities" when

A1/B1 does not equal a whole number (A1 being case quantities and B1 being
quantity ordered)

I'm pulling my hair out and it's probably really simple.... sigh.

Thanks for any help!
Becki
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default How do I return a text string when a calculation returns a non who

=IF(MOD(A1/B1,1),"You must order in case quantities",A1/B1)


"bcronin" wrote:

I need to display text "You must order in case quantities" when

A1/B1 does not equal a whole number (A1 being case quantities and B1 being
quantity ordered)

I'm pulling my hair out and it's probably really simple.... sigh.

Thanks for any help!
Becki

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default How do I return a text string when a calculation returns a non

Thanks! This returns a "1" when the amount is a whole number. How would I
modify it to return "Quantity Correct"?

Becki

"Teethless mama" wrote:

=IF(MOD(A1/B1,1),"You must order in case quantities",A1/B1)


"bcronin" wrote:

I need to display text "You must order in case quantities" when

A1/B1 does not equal a whole number (A1 being case quantities and B1 being
quantity ordered)

I'm pulling my hair out and it's probably really simple.... sigh.

Thanks for any help!
Becki

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default How do I return a text string when a calculation returns a nonwho

Try this:

=IF(INT(A1/B1)=A1/B1,"","You must order in case quantities")

Hope this helps.

Pete

On Aug 6, 3:59*pm, bcronin wrote:
I need to display text "You must order in case quantities" when

A1/B1 does not equal a whole number (A1 being case quantities and B1 being
quantity ordered)

I'm pulling my hair out and it's probably really simple.... sigh.

Thanks for any help!
Becki


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default How do I return a text string when a calculation returns a non

Thanks Pete.

I entered
=IF(INT(E11/F11)=E11/F11,"","You must order in case quantities")
and if the number is a whole number, it still returns the string "You must
order...."

Thanks,
Becki

"Pete_UK" wrote:

Try this:

=IF(INT(A1/B1)=A1/B1,"","You must order in case quantities")

Hope this helps.

Pete

On Aug 6, 3:59 pm, bcronin wrote:
I need to display text "You must order in case quantities" when

A1/B1 does not equal a whole number (A1 being case quantities and B1 being
quantity ordered)

I'm pulling my hair out and it's probably really simple.... sigh.

Thanks for any help!
Becki





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default How do I return a text string when a calculation returns a non

Well, I just copied your formula directly from your posting into cell
G11 of a blank sheet, put some numbers in E11 and F11, and it worked
fine for me.

Pete

On Aug 6, 5:32*pm, bcronin wrote:
Thanks Pete.

I entered
=IF(INT(E11/F11)=E11/F11,"","You must order in case quantities")
and if the number is a whole number, it still returns the string "You must
order...."

Thanks,
Becki



"Pete_UK" wrote:
Try this:


=IF(INT(A1/B1)=A1/B1,"","You must order in case quantities")


Hope this helps.


Pete


On Aug 6, 3:59 pm, bcronin wrote:
I need to display text "You must order in case quantities" when


A1/B1 does not equal a whole number (A1 being case quantities and B1 being
quantity ordered)


I'm pulling my hair out and it's probably really simple.... sigh.


Thanks for any help!
Becki- Hide quoted text -


- Show quoted text -


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default How do I return a text string when a calculation returns a non who

=IF(A1/B1<INT(A1/B1),"You must order in case quantities",A1/B1)

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


"bcronin" wrote:

I need to display text "You must order in case quantities" when

A1/B1 does not equal a whole number (A1 being case quantities and B1 being
quantity ordered)

I'm pulling my hair out and it's probably really simple.... sigh.

Thanks for any help!
Becki

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default How do I return a text string when a calculation returns a non

Thanks Jacob. I entered
=IF(E10/F10<INT(E10/F10),"You must order in case quantities",E10/F10)

and if the number is whole, I still get the "You must order in case
quantities"
Thanks,
Becki

"Jacob Skaria" wrote:

=IF(A1/B1<INT(A1/B1),"You must order in case quantities",A1/B1)

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


"bcronin" wrote:

I need to display text "You must order in case quantities" when

A1/B1 does not equal a whole number (A1 being case quantities and B1 being
quantity ordered)

I'm pulling my hair out and it's probably really simple.... sigh.

Thanks for any help!
Becki

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default How do I return a text string when a calculation returns a non

It should be B1/A1...

=IF(MOD(B1/A1,1),"You must order in case quantities","Quantity Correct")

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


"bcronin" wrote:

Thanks Jacob. I entered
=IF(E10/F10<INT(E10/F10),"You must order in case quantities",E10/F10)

and if the number is whole, I still get the "You must order in case
quantities"
Thanks,
Becki

"Jacob Skaria" wrote:

=IF(A1/B1<INT(A1/B1),"You must order in case quantities",A1/B1)

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


"bcronin" wrote:

I need to display text "You must order in case quantities" when

A1/B1 does not equal a whole number (A1 being case quantities and B1 being
quantity ordered)

I'm pulling my hair out and it's probably really simple.... sigh.

Thanks for any help!
Becki

  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default How do I return a text string when a calculation returns a non

Thanks Jacob! This worked perfectly!

Cheers - and thanks all for the help!

"Jacob Skaria" wrote:

It should be B1/A1...

=IF(MOD(B1/A1,1),"You must order in case quantities","Quantity Correct")

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


"bcronin" wrote:

Thanks Jacob. I entered
=IF(E10/F10<INT(E10/F10),"You must order in case quantities",E10/F10)

and if the number is whole, I still get the "You must order in case
quantities"
Thanks,
Becki

"Jacob Skaria" wrote:

=IF(A1/B1<INT(A1/B1),"You must order in case quantities",A1/B1)

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


"bcronin" wrote:

I need to display text "You must order in case quantities" when

A1/B1 does not equal a whole number (A1 being case quantities and B1 being
quantity ordered)

I'm pulling my hair out and it's probably really simple.... sigh.

Thanks for any help!
Becki



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
Create helper column which returns a text string based on multiplecriteria. Pierre Excel Worksheet Functions 3 March 28th 09 01:08 AM
Nested formula to search a text string and return specific text Barbie Excel Worksheet Functions 10 February 21st 09 07:40 AM
Can I insert 'carriage/line returns' in text string? DC-Frank Excel Worksheet Functions 1 June 16th 08 04:54 PM
Help formula that returns a text string from another sheet Stuart k Excel Worksheet Functions 1 April 7th 08 01:53 PM
use concatenate function to put carrage returns in a text string dabblingandconfused Excel Worksheet Functions 4 August 15th 06 04:58 PM


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