Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 130
Default Follow-up to the IF with OR function

Alright, I have another problem. THis is the formula I'm using;

=IF(OR('Location 1'!J2:J2500="Reversed",'Location
1'!F2:F2500="TIL"),"Check",SUM('Location 1'!G:G))

What I want it to do is this; If Anywhere in J2:J2500 it says "Reversed" or
Anywhere in F2:F2500 it says
"TIL" then I want "Check" Displayed.

If not, I want to sum the G column from that same sheet.

This is on another sheet, that's why I have the Sheet name listed.
I tried it with "Til" listed in the F column and it's still giving me the
sum of the G column instead of "Check".

Any ideas would be greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 430
Default Follow-up to the IF with OR function

You might just have a bracket in the wrong place. You only want the OR to
affect the 1st part so i might try and stick another ) bracket after TIL and
remove one of the ) from the end.

"Katie" wrote:

Alright, I have another problem. THis is the formula I'm using;

=IF(OR('Location 1'!J2:J2500="Reversed",'Location
1'!F2:F2500="TIL"),"Check",SUM('Location 1'!G:G))

What I want it to do is this; If Anywhere in J2:J2500 it says "Reversed" or
Anywhere in F2:F2500 it says
"TIL" then I want "Check" Displayed.

If not, I want to sum the G column from that same sheet.

This is on another sheet, that's why I have the Sheet name listed.
I tried it with "Til" listed in the F column and it's still giving me the
sum of the G column instead of "Check".

Any ideas would be greatly appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,069
Default Follow-up to the IF with OR function

Try this:

=IF(OR(ISNUMBER(FIND("Reversed",'Location
1'!J2:J2500)),ISNUMBER(FIND("TIL",'Location
1'!F2:F2500))),"Check",SUM('Location 1'!G:G))

Your formula was testing if all the cells in J2:J2500 contain Reversed, and
if all the cells in H2:H2500 contain TIL. If they don't, that's why it was
always returning the sum of column G (the FALSE condition).

Hope this helps,

Hutch

"Katie" wrote:

Alright, I have another problem. THis is the formula I'm using;

=IF(OR('Location 1'!J2:J2500="Reversed",'Location
1'!F2:F2500="TIL"),"Check",SUM('Location 1'!G:G))

What I want it to do is this; If Anywhere in J2:J2500 it says "Reversed" or
Anywhere in F2:F2500 it says
"TIL" then I want "Check" Displayed.

If not, I want to sum the G column from that same sheet.

This is on another sheet, that's why I have the Sheet name listed.
I tried it with "Til" listed in the F column and it's still giving me the
sum of the G column instead of "Check".

Any ideas would be greatly appreciated.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 130
Default Follow-up to the IF with OR function

Tom -

This is fabulous- I understand now why it wasn't working- Unfortunately I'm
still receiving an error- any ideas? (i copied and pasted)

"Tom Hutchins" wrote:

Try this:

=IF(OR(ISNUMBER(FIND("Reversed",'Location
1'!J2:J2500)),ISNUMBER(FIND("TIL",'Location
1'!F2:F2500))),"Check",SUM('Location 1'!G:G))

Your formula was testing if all the cells in J2:J2500 contain Reversed, and
if all the cells in H2:H2500 contain TIL. If they don't, that's why it was
always returning the sum of column G (the FALSE condition).

Hope this helps,

Hutch

"Katie" wrote:

Alright, I have another problem. THis is the formula I'm using;

=IF(OR('Location 1'!J2:J2500="Reversed",'Location
1'!F2:F2500="TIL"),"Check",SUM('Location 1'!G:G))

What I want it to do is this; If Anywhere in J2:J2500 it says "Reversed" or
Anywhere in F2:F2500 it says
"TIL" then I want "Check" Displayed.

If not, I want to sum the G column from that same sheet.

This is on another sheet, that's why I have the Sheet name listed.
I tried it with "Til" listed in the F column and it's still giving me the
sum of the G column instead of "Check".

Any ideas would be greatly appreciated.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Follow-up to the IF with OR function

The formula suggested by Tom is an *array* formula!
--
Array formulas must be entered with CSE, <Ctrl <Shift <Enter, instead of
the regular <Enter, which will *automatically* enclose the formula in curly
brackets, which *cannot* be done manually. Also, you must use CSE when
revising the formula.

If you would prefer a *non-array* formula, you could try this:

=IF(SUMPRODUCT(ISNUMBER(SEARCH("reversed",'Locatio n
1'!J2:J2500))+ISNUMBER(SEARCH("til",'Location
1'!F2:F2500))),"CHECK",SUM('Location 1'!G:G))

If you decide to use the *array* formula, I would suggest, that since the
Find() function is case sensitive, you replace it with the Search() function
which is not case sensitive.

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------


"Katie" wrote in message
...
Tom -

This is fabulous- I understand now why it wasn't working- Unfortunately
I'm
still receiving an error- any ideas? (i copied and pasted)

"Tom Hutchins" wrote:

Try this:

=IF(OR(ISNUMBER(FIND("Reversed",'Location
1'!J2:J2500)),ISNUMBER(FIND("TIL",'Location
1'!F2:F2500))),"Check",SUM('Location 1'!G:G))

Your formula was testing if all the cells in J2:J2500 contain Reversed,
and
if all the cells in H2:H2500 contain TIL. If they don't, that's why it
was
always returning the sum of column G (the FALSE condition).

Hope this helps,

Hutch

"Katie" wrote:

Alright, I have another problem. THis is the formula I'm using;

=IF(OR('Location 1'!J2:J2500="Reversed",'Location
1'!F2:F2500="TIL"),"Check",SUM('Location 1'!G:G))

What I want it to do is this; If Anywhere in J2:J2500 it says
"Reversed" or
Anywhere in F2:F2500 it says
"TIL" then I want "Check" Displayed.

If not, I want to sum the G column from that same sheet.

This is on another sheet, that's why I have the Sheet name listed.
I tried it with "Til" listed in the F column and it's still giving me
the
sum of the G column instead of "Check".

Any ideas would be greatly appreciated.


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
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Need a ISWorkday Function -- Any Ideas Mark Excel Worksheet Functions 5 March 29th 05 01:58 AM
Hyperlinks using R[1]C[1] and offset function in its cell referenc Elijah-Dadda Excel Worksheet Functions 0 March 5th 05 03:31 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


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