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

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Domski

Well-known Member
Joined
Jan 18, 2005
Messages
7,292
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,190,677
Messages
5,982,213
Members
439,769
Latest member
trungminh2802

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
Top