#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Cross reference

a simple excel, I have 4 columns in my excel

A is for checking
B is the price or product
C is profit
D is cost

what i want to do is simple, I set formular in C & D, once a user
input either C or D, the another cell will show the different. i.e.

if C is input, D=B-C
if D is input, C=B-D

then A is checking purpose, if either C or D is inputted, it will
shown "Y"

but if I use IF(D0, B-D, "") it will introduce cyclic reference.

any solution for this?
Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default Cross reference

Why not use
=IF(AND(C1="",D1="","","Y)

Also what you have given will not create cyclical reference
"Edward" wrote:

a simple excel, I have 4 columns in my excel

A is for checking
B is the price or product
C is profit
D is cost

what i want to do is simple, I set formular in C & D, once a user
input either C or D, the another cell will show the different. i.e.

if C is input, D=B-C
if D is input, C=B-D

then A is checking purpose, if either C or D is inputted, it will
shown "Y"

but if I use IF(D0, B-D, "") it will introduce cyclic reference.

any solution for this?
Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Cross reference

Thanks for replying, I did use your formula but the problem is it did
cyclic reference,

because the formula in C is
=IF(D20,B2-D2,"")

formula in D is
=IF(C20,B2-C2,"")

when i did this all value in D is not blank, but 0 (and say i have
cyclic reference)

D reference to C and C reference to D. I can't attached my file here
so can't show you the template.

Thanks.


On 11$B7n(B10$BF|(B, $B2<8a(B2$B;~(B53$BJ,(B, Sheeloo <="to" & CHAR(95) & "sheeloo" & CHAR(64) &
"hotmail.com" wrote:
Why not use
=IF(AND(C1="",D1="","","Y)

Also what you have given will not create cyclical reference

"Edward" wrote:
a simple excel, I have 4 columns in my excel


A is for checking
B is the price or product
C is profit
D is cost


what i want to do is simple, I set formular in C & D, once a user
input either C or D, the another cell will show the different. i.e.


if C is input, D=B-C
if D is input, C=B-D


then A is checking purpose, if either C or D is inputted, it will
shown "Y"


but if I use IF(D0, B-D, "") it will introduce cyclic reference.


any solution for this?
Thanks.


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default Cross reference

Use this in E2
=IF(C20,B2-C2,IF(D20,B2-D2,""))

"Edward" wrote:

Thanks for replying, I did use your formula but the problem is it did
cyclic reference,

because the formula in C is
=IF(D20,B2-D2,"")

formula in D is
=IF(C20,B2-C2,"")

when i did this all value in D is not blank, but 0 (and say i have
cyclic reference)

D reference to C and C reference to D. I can't attached my file here
so can't show you the template.

Thanks.


On 11月10日, 下午2時53分, Sheeloo <="to" & CHAR(95) & "sheeloo" & CHAR(64) &
"hotmail.com" wrote:
Why not use
=IF(AND(C1="",D1="","","Y)

Also what you have given will not create cyclical reference

"Edward" wrote:
a simple excel, I have 4 columns in my excel


A is for checking
B is the price or product
C is profit
D is cost


what i want to do is simple, I set formular in C & D, once a user
input either C or D, the another cell will show the different. i.e.


if C is input, D=B-C
if D is input, C=B-D


then A is checking purpose, if either C or D is inputted, it will
shown "Y"


but if I use IF(D0, B-D, "") it will introduce cyclic reference.


any solution for this?
Thanks.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Cross reference

Yes, but since B,C,D are prices, profit and cost accordingly, I assume
we know only profit or cost and automatically determine the other
without setting the formula myself. so I stick it to C & D. E would be
meaningless somehow (since I don't know whether it represents profit
or cost)

Thanks again.



On 11$B7n(B10$BF|(B, $B2<8a(B3$B;~(B13$BJ,(B, Sheeloo <="to" & CHAR(95) & "sheeloo" & CHAR(64) &
"hotmail.com" wrote:
Use this in E2
=IF(C20,B2-C2,IF(D20,B2-D2,""))

"Edward" wrote:
Thanks for replying, I did use your formula but the problem is it did
cyclic reference,


because the formula in C is
=IF(D20,B2-D2,"")


formula in D is
=IF(C20,B2-C2,"")


when i did this all value in D is not blank, but 0 (and say i have
cyclic reference)


D reference to C and C reference to D. I can't attached my file here
so can't show you the template.


Thanks.


On 11$B7n(B10$BF|(B, $B2<8a(B2$B;~(B53$BJ,(B, Sheeloo <="to" & CHAR(95) & "sheeloo" & CHAR(64) &
"hotmail.com" wrote:
Why not use
=IF(AND(C1="",D1="","","Y)


Also what you have given will not create cyclical reference


"Edward" wrote:
a simple excel, I have 4 columns in my excel


A is for checking
B is the price or product
C is profit
D is cost


what i want to do is simple, I set formular in C & D, once a user
input either C or D, the another cell will show the different. i.e.


if C is input, D=B-C
if D is input, C=B-D


then A is checking purpose, if either C or D is inputted, it will
shown "Y"


but if I use IF(D0, B-D, "") it will introduce cyclic reference.


any solution for this?
Thanks.




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default Cross reference

You have to use another column to calculate C & D...

If you use Col A to indicate whether you have Profit or Cost then you can
have formulae in C & D

"Edward" wrote:

Yes, but since B,C,D are prices, profit and cost accordingly, I assume
we know only profit or cost and automatically determine the other
without setting the formula myself. so I stick it to C & D. E would be
meaningless somehow (since I don't know whether it represents profit
or cost)

Thanks again.



On 11月10日, 下午3時13分, Sheeloo <="to" & CHAR(95) & "sheeloo" & CHAR(64) &
"hotmail.com" wrote:
Use this in E2
=IF(C20,B2-C2,IF(D20,B2-D2,""))

"Edward" wrote:
Thanks for replying, I did use your formula but the problem is it did
cyclic reference,


because the formula in C is
=IF(D20,B2-D2,"")


formula in D is
=IF(C20,B2-C2,"")


when i did this all value in D is not blank, but 0 (and say i have
cyclic reference)


D reference to C and C reference to D. I can't attached my file here
so can't show you the template.


Thanks.


On 11月10日, 下午2時53分, Sheeloo <="to" & CHAR(95) & "sheeloo" & CHAR(64) &
"hotmail.com" wrote:
Why not use
=IF(AND(C1="",D1="","","Y)


Also what you have given will not create cyclical reference


"Edward" wrote:
a simple excel, I have 4 columns in my excel


A is for checking
B is the price or product
C is profit
D is cost


what i want to do is simple, I set formular in C & D, once a user
input either C or D, the another cell will show the different. i.e.


if C is input, D=B-C
if D is input, C=B-D


then A is checking purpose, if either C or D is inputted, it will
shown "Y"


but if I use IF(D0, B-D, "") it will introduce cyclic reference.


any solution for this?
Thanks.



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Cross reference

so far I have the same conclusion as yours, but not sure if there are
"smarter" ways.

anyway, great thanks for your advise.

On 11$B7n(B10$BF|(B, $B2<8a(B3$B;~(B53$BJ,(B, Sheeloo <="to" & CHAR(95) & "sheeloo" & CHAR(64) &
"hotmail.com" wrote:
You have to use another column to calculate C & D...

If you use Col A to indicate whether you have Profit or Cost then you can
have formulae in C & D

"Edward" wrote:
Yes, but since B,C,D are prices, profit and cost accordingly, I assume
we know only profit or cost and automatically determine the other
without setting the formula myself. so I stick it to C & D. E would be
meaningless somehow (since I don't know whether it represents profit
or cost)


Thanks again.


On 11$B7n(B10$BF|(B, $B2<8a(B3$B;~(B13$BJ,(B, Sheeloo <="to" & CHAR(95) & "sheeloo" & CHAR(64) &
"hotmail.com" wrote:
Use this in E2
=IF(C20,B2-C2,IF(D20,B2-D2,""))


"Edward" wrote:
Thanks for replying, I did use your formula but the problem is it did
cyclic reference,


because the formula in C is
=IF(D20,B2-D2,"")


formula in D is
=IF(C20,B2-C2,"")


when i did this all value in D is not blank, but 0 (and say i have
cyclic reference)


D reference to C and C reference to D. I can't attached my file here
so can't show you the template.


Thanks.


On 11$B7n(B10$BF|(B, $B2<8a(B2$B;~(B53$BJ,(B, Sheeloo <="to" & CHAR(95) & "sheeloo" & CHAR(64) &
"hotmail.com" wrote:
Why not use
=IF(AND(C1="",D1="","","Y)


Also what you have given will not create cyclical reference


"Edward" wrote:
a simple excel, I have 4 columns in my excel


A is for checking
B is the price or product
C is profit
D is cost


what i want to do is simple, I set formular in C & D, once a user
input either C or D, the another cell will show the different. i.e.


if C is input, D=B-C
if D is input, C=B-D


then A is checking purpose, if either C or D is inputted, it will
shown "Y"


but if I use IF(D0, B-D, "") it will introduce cyclic reference.


any solution for this?
Thanks.


  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Cross reference

for reference, finally archieved by using macro of
on_worksheetchange_selection to accomplish, thanks.


On 11$B7n(B10$BF|(B, $B2<8a(B4$B;~(B00$BJ,(B, Edward wrote:
so far I have the same conclusion as yours, but not sure if there are
"smarter" ways.

anyway, great thanks for your advise.

On 11$B7n(B10$BF|(B, $B2<8a(B3$B;~(B53$BJ,(B, Sheeloo <="to" & CHAR(95) & "sheeloo" & CHAR(64) &

"hotmail.com" wrote:
You have to use another column to calculate C & D...


If you use Col A to indicate whether you have Profit or Cost then you can
have formulae in C & D


"Edward" wrote:
Yes, but since B,C,D are prices, profit and cost accordingly, I assume
we know only profit or cost and automatically determine the other
without setting the formula myself. so I stick it to C & D. E would be
meaningless somehow (since I don't know whether it represents profit
or cost)


Thanks again.


On 11$B7n(B10$BF|(B, $B2<8a(B3$B;~(B13$BJ,(B, Sheeloo <="to" & CHAR(95) & "sheeloo" & CHAR(64) &
"hotmail.com" wrote:
Use this in E2
=IF(C20,B2-C2,IF(D20,B2-D2,""))


"Edward" wrote:
Thanks for replying, I did use your formula but the problem is it did
cyclic reference,


because the formula in C is
=IF(D20,B2-D2,"")


formula in D is
=IF(C20,B2-C2,"")


when i did this all value in D is not blank, but 0 (and say i have
cyclic reference)


D reference to C and C reference to D. I can't attached my file here
so can't show you the template.


Thanks.


On 11$B7n(B10$BF|(B, $B2<8a(B2$B;~(B53$BJ,(B, Sheeloo <="to" & CHAR(95) & "sheeloo" & CHAR(64) &
"hotmail.com" wrote:
Why not use
=IF(AND(C1="",D1="","","Y)


Also what you have given will not create cyclical reference


"Edward" wrote:
a simple excel, I have 4 columns in my excel


A is for checking
B is the price or product
C is profit
D is cost


what i want to do is simple, I set formular in C & D, once a user
input either C or D, the another cell will show the different. i.e.


if C is input, D=B-C
if D is input, C=B-D


then A is checking purpose, if either C or D is inputted, it will
shown "Y"


but if I use IF(D0, B-D, "") it will introduce cyclic reference.


any solution for this?
Thanks.


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
cross reference two spreadsheets MAD101 Excel Discussion (Misc queries) 1 October 20th 08 02:55 AM
cross reference two auntieb New Users to Excel 3 September 8th 08 05:17 PM
Cross reference LaRana! Excel Worksheet Functions 1 March 6th 08 12:22 AM
Cross Reference between sheets JP Excel Worksheet Functions 2 May 14th 06 01:36 PM
Cross Reference Terrance DeBord Excel Worksheet Functions 1 March 8th 06 04:11 PM


All times are GMT +1. The time now is 02:46 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"