#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default IF, THEN SYNTAX

HELP!!!

=IF(AB2, C1 THEN B2)

C1 IS A DATE....IF AB2 IS GREATER THAN OR EQUAL TO THAT DATE THEN INSERT
AMOUNT IN B2, IF NOT ENTER "0"

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default IF, THEN SYNTAX

Try this...

=IF(AB2=C1,B2,0)

Or...

=(AB2=C1)*B2

--
Biff
Microsoft Excel MVP


"BBABBZZ" wrote in message
...
HELP!!!

=IF(AB2, C1 THEN B2)

C1 IS A DATE....IF AB2 IS GREATER THAN OR EQUAL TO THAT DATE THEN INSERT
AMOUNT IN B2, IF NOT ENTER "0"



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default IF, THEN SYNTAX

Hi,

=IF(AB2=C1, B2,0)

Mike

"BBABBZZ" wrote:

HELP!!!

=IF(AB2, C1 THEN B2)

C1 IS A DATE....IF AB2 IS GREATER THAN OR EQUAL TO THAT DATE THEN INSERT
AMOUNT IN B2, IF NOT ENTER "0"

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 833
Default IF, THEN SYNTAX


Cell C 1 is formatted as a date.

Cell AB2 is formatted as a date.

The formula in AB6 is:

=IF(OR(AB2C1,AB2=C1),B2,"0")

I think that the above gives you what you want.

If my comments have helped please hit Yes.

Thanks.


"BBABBZZ" wrote:

HELP!!!

=IF(AB2, C1 THEN B2)

C1 IS A DATE....IF AB2 IS GREATER THAN OR EQUAL TO THAT DATE THEN INSERT
AMOUNT IN B2, IF NOT ENTER "0"

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default IF, THEN SYNTAX

Hi,

Have a look at the other responses you can check for = in 1 go.

Mike

"trip_to_tokyo" wrote:


Cell C 1 is formatted as a date.

Cell AB2 is formatted as a date.

The formula in AB6 is:

=IF(OR(AB2C1,AB2=C1),B2,"0")

I think that the above gives you what you want.

If my comments have helped please hit Yes.

Thanks.


"BBABBZZ" wrote:

HELP!!!

=IF(AB2, C1 THEN B2)

C1 IS A DATE....IF AB2 IS GREATER THAN OR EQUAL TO THAT DATE THEN INSERT
AMOUNT IN B2, IF NOT ENTER "0"



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 905
Default IF, THEN SYNTAX

"BBABBZZ" wrote:
C1 IS A DATE....IF AB2 IS GREATER THAN OR EQUAL TO THAT
DATE THEN INSERT AMOUNT IN B2, IF NOT ENTER "0"


Well, the "obvious" answer is:

=IF(AB2=C1, B2, 0)

But whenever I see a posting in all caps and a reference to "0" [sic]
instead of 0 (without quotes), especially when it is posted using the MS
Discussion Groups web interface, I suspect that things are not as "obvious"
as they might seem.

When you say that C1 (and AB2, presumably) are "dates", do you mean a number
formatted as Date or a Custom date format (the "obvious" assumption), or do
you mean text that looks like (or you interpret as) a date in some form?

If the latter -- which you can determine by entering =TYPE(C1) and
=TYPE(AB2) somewhere and interpreting according to the help page for TYPE --
then the "obvious" solution probably will work. (Although it might __seem__
to work with some examples.)

If the "obvious" answer does not work, be sure to tell more about these
"dates".

PS: If B2 is text and really do want the text "0" as the alternative,
enter:

=IF(AB2=C1, B2, "0")

But do not use "0" if B2 is numeric. It is better to return the number zero
alternatively.


----- original message -----

"BBABBZZ" wrote in message
...
HELP!!!

=IF(AB2, C1 THEN B2)

C1 IS A DATE....IF AB2 IS GREATER THAN OR EQUAL TO THAT DATE THEN INSERT
AMOUNT IN B2, IF NOT ENTER "0"


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
Syntax HELP Eric H Excel Discussion (Misc queries) 4 August 30th 08 01:30 AM
IRR Syntax Bruce Excel Worksheet Functions 1 July 13th 07 09:02 PM
Help with Syntax Steve Excel Discussion (Misc queries) 2 June 21st 07 06:52 PM
If then syntax RL Excel Worksheet Functions 3 June 22nd 05 05:30 AM
Syntax Help Dmorri254 Excel Worksheet Functions 2 March 2nd 05 02:51 PM


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