OR - formula is giving #value error

irfananeeza

Active Member
Joined
Feb 15, 2008
Messages
334
Office Version
  1. 2010
Hi Experts, I need help with the following #value error. I need a formula to automatically determine existence of "Court Fees". If "Court Fees" found on either Bank Account sheet or Credit Card sheet, then populate it on Cell A7 of the income sheet. The formula must be dynamic. Any help would be appreciated.

Book1
AB
1CategoriesAmount
2Sales
3Advertising
4Training Exp
5Rent
6Utilities
7#VALUE!formula should auto decide what should be the cell value "Court Fees" or "Other Expenses"
Income
Cell Formulas
RangeFormula
A7A7=IF(OR('Bank Account'!$E$1:$E$1000,'Credit Card'!$E$1:$E$1000)="Court Fees","Court Fees","Other Expenses")
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
how about

=if(
or(
countif( 'Bank Account'!$E$1:$E$1000, "Court Fees")>0 ,countif('Credit Card'!$E$1:$E$1000 , "Court Fees")>0),

"Court Fees","Other Expenses")


=IF(OR(COUNTIF( 'Bank Account'!$E$1:$E$1000, "Court Fees")>0,COUNTIF('Credit Card'!$E$1:$E$1000, "Court Fees")>0),"Court Fees","Other Expenses")
 
Upvote 0
Solution
You cannot apply the OR function to a whole range of cells like that.
If you are trying to see if ANY cells in that range ="Court Fees", use COUNTIF.

EDIT: Just like etaf shows you above!
 
Upvote 0
@etaf, I did post my data using XL2BB addin. Was it not posted right? Or was there any issue there?. Just want to make sure next time follow the right way. Thanks.
 
Upvote 0
no issue, always good to see an XL2BB
BUT
as it did not have the other sheets - could have also been posted separately with XL2BB

'Bank Account'!
or
'Credit Card'!

so without recreating those sheets and data. i thought it easier and quicker, at least for me , just to post the formula
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,265
Members
452,627
Latest member
KitkatToby

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top