Named Range in formula error

Clare1805

New Member
Joined
Apr 14, 2008
Messages
39
Please help before I go insane looking at this formula!!

On one tab, I have a cell which contains the following formula; I have named this cell "EndofMonth". And the cell is formatted as a number.
=TEXT(EOMONTH(G8,0),"YYYYMMDD")
(G8 being a date entered by the user e.g. 10/06/2008)

In a seperate tab I have a relatively simple If(and( formula which has several criteria. I have tested each criteria seperately and the problem lies where I am using this named range (EndofMonth) However I will paste the whole formula for completeness:

=IF(AND(RawDate58=0,RawDelDate<=Month25,RawCDD>EndofMonth,RawCDD<EndofYear,RawFON<>"11885", RawFON<>"17858"),1,0)

When I replace the named range EndofMonth with 20080630 the formula works fine - any ideas?!!

p.s. The cells it is referring to (e.g. RawCDD, RawDate58 are all formatted as number)
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi,

Maybe try:

=IF(AND(RawDate58=0,RawDelDate<=Month25,RawCDD>EndofMonth*1,RawCDD<ENDOFYEAR,RAWFON<>"11885", RawFON<>"17858"),1,0)

Dom
 
Upvote 0

Forum statistics

Threads
1,214,924
Messages
6,122,293
Members
449,077
Latest member
Rkmenon

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