#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ann ann is offline
external usenet poster
 
Posts: 210
Default if then forumla

how do i get this logic to work. if x30 and ends with .00 then (basically i
want it to give me the result of 24.00 etc but not 24.21

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default if then forumla

On Jun 25, 2:20 pm, Ann wrote:
how do i get this logic to work. if x30 and ends with .00 then (basically i
want it to give me the result of 24.00 etc but not 24.21


Some details seem to be missing, but I wonder if you want:

=if(and(A130, int(A1)=round(A1,2)), int(A2), A2)

where A1 contains "x" and A2 contains 24.21, for example.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default if then forumla

On Jun 25, 5:38 pm, joeu2004 wrote:
Some details seem to be missing, but I wonder if you want:
=if(and(A130, int(A1)=round(A1,2)), int(A2), A2)
where A1 contains "x" and A2 contains 24.21, for example.


Aha! You posted the following correction in another thread in another
newsgroup. The correction is what I thought you might have meant in
the first place.

For the future, I suggest that you improve your posting skills.
Specifically:

1. Post an inquiry in only one "similar" newsgroup. All the
m.p.excel.* newsgroups have similar readership.

2. Crosspost in "dissimilar" newsgroups, but only if your newsreader
supports true crossposting, as opposed to duplicate postings in each
newsgroup. Since you rarely know that, it is better to avoid
crossposting altogether.

3. Post different inquiries with unique subject lines. You posted 2
inquiries with the same "if then formula" subject.


--- errata posting ---

On Jun 25, 3:02 pm, Ann wrote:
here's the formula. if x <30 and ends in .00 then return x otherwise return
0. so if x=24.24 then return 0. if x = 24.00, then return 24. i want it to
read the .xx portion and return a number if its an integer. on the right
track, but not completely.


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
If Forumla huntress731 Excel Discussion (Misc queries) 3 December 14th 06 07:40 PM
Forumla tuzdevil Excel Discussion (Misc queries) 2 June 1st 06 10:44 AM
Help with Forumla WeSt39 Excel Worksheet Functions 2 March 20th 06 11:22 PM
Forumla Help AB Excel Discussion (Misc queries) 1 January 3rd 06 12:06 AM
Forumla Don Excel Worksheet Functions 3 August 9th 05 02:52 AM


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