Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 440
Default A formula referencing another

Morning (depending where you are...:)

Using the following to zero figures when it's a Monday:
=IF(B18="Mon",D18,IF(D18<"",E17+D18,""))
where B18 is this:
=IF(C18="","",WEEKDAY(C18)+1) and formatted "ddd"

It doesn't work (I think) because it doesn't actually state "Mon" in the
cell. If I manually type "Mon" in, it works fine.
Is there a work around for this type of issue?

Thanks in advance
--
Traa Dy Liooar

Jock
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default A formula referencing another

Good Morning, Jock - you could try this:

=IF(TEXT(B18,"ddd")="Mon",D18,IF(D18<"",E17+D18," "))

if B18 contains a date. I imagine there was a typo in your post - you
can't have D18<"" (well, you can, but it doesn't mean anything).

Hope this helps.

Pete

On Aug 15, 10:20 am, Jock wrote:
Morning (depending where you are...:)

Using the following to zero figures when it's a Monday:
=IF(B18="Mon",D18,IF(D18<"",E17+D18,""))
where B18 is this:
=IF(C18="","",WEEKDAY(C18)+1) and formatted "ddd"

It doesn't work (I think) because it doesn't actually state "Mon" in the
cell. If I manually type "Mon" in, it works fine.
Is there a work around for this type of issue?

Thanks in advance
--
Traa Dy Liooar

Jock



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 440
Default A formula referencing another

Thanks Pete, works a treat.
Incidentally, the D18=<"" bit was correct; I'd initially set it up as but
this gave me the #value error. Funny old game....
--
Traa Dy Liooar

Jock


"Pete_UK" wrote:

Good Morning, Jock - you could try this:

=IF(TEXT(B18,"ddd")="Mon",D18,IF(D18<"",E17+D18," "))

if B18 contains a date. I imagine there was a typo in your post - you
can't have D18<"" (well, you can, but it doesn't mean anything).

Hope this helps.

Pete

On Aug 15, 10:20 am, Jock wrote:
Morning (depending where you are...:)

Using the following to zero figures when it's a Monday:
=IF(B18="Mon",D18,IF(D18<"",E17+D18,""))
where B18 is this:
=IF(C18="","",WEEKDAY(C18)+1) and formatted "ddd"

It doesn't work (I think) because it doesn't actually state "Mon" in the
cell. If I manually type "Mon" in, it works fine.
Is there a work around for this type of issue?

Thanks in advance
--
Traa Dy Liooar

Jock




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default A formula referencing another

"Jock" wrote in message
...
Traa Dy Liooar


Isn't there still a law in the Isle of Man whereby they shoot scotsmen or
something? <g

--


Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default A formula referencing another

It's still legal to kill a Welshman abroad in the streets of Chester after
dusk if that's any good;)

Mike

"Sandy Mann" wrote:

"Jock" wrote in message
...
Traa Dy Liooar


Isn't there still a law in the Isle of Man whereby they shoot scotsmen or
something? <g

--


Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 440
Default A formula referencing another

Gone a bit off topic there....lol
Yes, I'm sure there's some truth in what you say Sandy as I've heard that
before. Being a Jock however, I'm permanently on the lookout for possible
vigilante nutters!!
Mike's theory seems a bit adventurous though, but, what the hey......
--
Traa Dy Liooar

Jock


"Sandy Mann" wrote:

"Jock" wrote in message
...
Traa Dy Liooar


Isn't there still a law in the Isle of Man whereby they shoot scotsmen or
something? <g

--


Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default A formula referencing another

So, are you going to tell us what:

Traa Dy Liooar

means?

Pete

On Aug 15, 12:52 pm, Jock wrote:
Gone a bit off topic there....lol
Yes, I'm sure there's some truth in what you say Sandy as I've heard that
before. Being a Jock however, I'm permanently on the lookout for possible
vigilante nutters!!
Mike's theory seems a bit adventurous though, but, what the hey......
--
Traa Dy Liooar

Jock



"Sandy Mann" wrote:
"Jock" wrote in message
...
Traa Dy Liooar


Isn't there still a law in the Isle of Man whereby they shoot scotsmen or
something? <g


--


Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings



Replace @mailinator.com with @tiscali.co.uk- Hide quoted text -


- Show quoted text -



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default A formula referencing another

=IF(TEXT(B18,"ddd")="Mon",D18,IF(D18<"",E17+D18,"" ))
would be one option, but I don't see what you're doing with B18. You are
putting into B18 a number from 2 to 8, rather than a date. You're probably
only getting away with it because Excel treats 1st Jan 1900 as a Sunday,
when it was actually a Monday.
--
David Biddulph

"Jock" wrote in message
...
Morning (depending where you are...:)

Using the following to zero figures when it's a Monday:
=IF(B18="Mon",D18,IF(D18<"",E17+D18,""))
where B18 is this:
=IF(C18="","",WEEKDAY(C18)+1) and formatted "ddd"

It doesn't work (I think) because it doesn't actually state "Mon" in the
cell. If I manually type "Mon" in, it works fine.
Is there a work around for this type of issue?

Thanks in advance
--
Traa Dy Liooar

Jock



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
referencing a control within formula RS Excel Worksheet Functions 2 November 16th 06 03:27 PM
Referencing a formula Sprout Excel Discussion (Misc queries) 2 August 19th 05 02:57 PM
Referencing a formula (as text) Nelson Excel Worksheet Functions 3 May 1st 05 01:44 AM
Referencing Sheets in a Formula Christopher Anderson Excel Discussion (Misc queries) 1 January 31st 05 04:10 PM
formula referencing another workbook Steve D Excel Worksheet Functions 2 January 7th 05 09:43 PM


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