AusGamers Forums
Show: per page
1
Excel Help
sleepy
Sunshine Coast, Queensland
2288 posts
Hey,

I need to get a formula or formatting for:

I have data which is calculated from one sheet onto another sheet.
Within that sheet I have that data which I need to transfer that figure into another cell. (one of 4 or 5)
Now the problem I can't solve or find a result for is:
If the number is between lets say 1-99 it needs to go into a specific cell for further calculation.
If the number is between 100-199 it needs to go into a specific cell different to the one above it.
and so on.
Making sense?

Photobucket

MS EXCEL 2010

I used to be able to do it in the old 2003 version under conditional formatting but I can't seem to work it out/find the right bit in this version.

I want to try to avoid it but I can screenshot what I need to do if it makes no sense.
11:31am 28/06/12 Permalink
adBot
ads
Internet
--
ads keep websites free
11:31am 28/06/12 Permalink
Fade2Black
Brisbane, Queensland
5066 posts
if it was me I would have two columns and use if statements

column1 = if(A1<100,A1,"")
column2 = if(A1>=100,A1,"")

few alternatives to that could also be applied although this seems overly simple so I may be interpreting your problem incorrectly.
12:32pm 28/06/12 Permalink
Fade2Black
Brisbane, Queensland
5067 posts
actually what I posted above will work for you (I looked at your screencapture) but rather than columns just think of them as cells. You can also get it to work for ranges by using if statements inside on another.

I.e. this would net you any value from 100 to 198

=if(A1>99,if(A1<199,A1,""),"")
12:35pm 28/06/12 Permalink
sleepy
Sunshine Coast, Queensland
2289 posts
actually what I posted above will work for you (I looked at your screencapture) but rather than columns just think of them as cells. You can also get it to work for ranges by using if statements inside on another.

I.e. this would net you any value from 100 to 198

=if(A1>99,if(A1<199,A1,""),"")


Te destination cell should be in place of the inverted commas?
01:03pm 28/06/12 Permalink
Dazhel
Gold Coast, Queensland
5009 posts
It's correct, but nested IFs in excel formulas make baby jesus cry

=IF(AND(A1>99,A1<199),A1,"")

The formula should be in the destination cell.
01:04pm 28/06/12 Permalink
sleepy
Sunshine Coast, Queensland
2290 posts
thanks for the helps
02:14pm 28/06/12 Permalink
Obes
Brisbane, Queensland
9690 posts
nested IFs in excel formulas make baby jesus cry

True that. They can only be nested 7 deep by the way.

I prefer to use * instead of and only because it's closer to typing &&

=IF((A1>99)*(A1<199),A1,"")

Why does that work ?
1 is true (actually anything not 0)
0 is false

1 * 1 = 1
true and true = true

false and anything = false
0 and anything = 0


or is +
03:04pm 28/06/12 Permalink
taggs
6014 posts
They can only be nested 7 deep by the way.


excel 2007 can handle up to 64 but its still bad practice.
03:17pm 28/06/12 Permalink
Obes
Brisbane, Queensland
9692 posts
Seriously ... 64 ... fuck me 7 was stupid I have no idea why you would need 64.

You can use vlookup like a switch case too (but not in this scenario).
03:26pm 28/06/12 Permalink
Dazhel
Gold Coast, Queensland
5015 posts
Nice shortcut Obes, ta.

We're in the process of convincing a number of clients to upgrade from Excel 2003 to 2010. The increased row limit from 65K to 1M, slicers, improved conditional formatting & the powerpivot plugin are huge benefits. I think I'll leave off the 64 nesting limit as a selling point though, otherwise they'll be delighted but for all the wrong reasons.
06:08am 29/06/12 Permalink
HERMITech
Brisbane, Queensland
7906 posts
SUMPRODUCT is even better
10:32am 29/06/12 Permalink
adBot
ads
Internet
--
ads keep websites free
10:32am 29/06/12 Permalink
AusGamers Forums
Show: per page
1
This thread is archived and cannot be replied to.
 

Advertise with Us | Download Media Kit | Privacy Policy | Contact Us
© Copyright 2001-2013 AusGamers™ Pty Ltd. ACN 093 772 242.
A Mammoth Media web development, hosted by Mammoth VPS.