Hello Guys,
I have a question on transferring the odds from Betangel sheet to sheet 2.You copied 8 cells of odds to sheet 2 if the selections were 8 on Betangel sheet.But you only copied 3 cells of odds to sheet 2 if the selections were 3.Now the column in sheet 2 was like this:
3
13
8
0
0
0
0
0
My question is how can i not copy the "0" to sheet 2 and only copy the odds like this:
3
13
8
Can anyone help me?
Cheers.
How can i not copy the "0" to sheet 2?
- pdupre1961
- Posts: 410
- Joined: Fri Feb 18, 2011 8:01 pm
should beBet_boy wrote:
='Bet Angel'!G15,IF('Bet Angel'!G15=0,"")
=IF('Bet Angel'!G15=0,"", 'Bet Angel'!G15)
Paul
- JollyGreen
- Posts: 2047
- Joined: Sat Mar 21, 2009 10:06 am
It's been a while since I did any excel work but I think the use of the IF function requires two parts to the formula.
For example IF A1=0,"",A1+A2
That's because it performs a logical test like this -
=IF ( logical_test, value_if_true, value_if_false )
The comma is used as a separator so if the answer is 0 you will get a blank ("") or if not is will be the result of A1+A2.
Hope that helps?
EDIT: It looks like Paul and I posted at the same time!
For example IF A1=0,"",A1+A2
That's because it performs a logical test like this -
=IF ( logical_test, value_if_true, value_if_false )
The comma is used as a separator so if the answer is 0 you will get a blank ("") or if not is will be the result of A1+A2.
Hope that helps?
EDIT: It looks like Paul and I posted at the same time!
- JollyGreen
- Posts: 2047
- Joined: Sat Mar 21, 2009 10:06 am
For future reference the #Value! error is usually the result of mixing text and numerical values and it can be a right pain in the **** especially if you have a large formula.
When you try and write a formula in excel try where possible to use the correct worksheet function.
For example,
Instead of writing =A1+A2
Use the function =sum(A1,A2)
This will help you find errors and repair them.
If A1 = Sunday and A2 = 24
=A1+A2 would return #VALUE!
=sum(A1,A2) would return 24
Obviously you need to be aware of what the formulas are returning but using the correct excel functions will mean more structure to your work.
Again, I hope that helps.
JG
When you try and write a formula in excel try where possible to use the correct worksheet function.
For example,
Instead of writing =A1+A2
Use the function =sum(A1,A2)
This will help you find errors and repair them.
If A1 = Sunday and A2 = 24
=A1+A2 would return #VALUE!
=sum(A1,A2) would return 24
Obviously you need to be aware of what the formulas are returning but using the correct excel functions will mean more structure to your work.
Again, I hope that helps.
JG