#### Formula? #2

```Here is what I want to do:
If a cell (formatted as number) is between 0 and 10 multiply it by this.  If
it's between 10 and 20 multiply it by that.  How do you write that?

thx
```
 0
newby1273 (4)
4/30/2008 10:33:11 PM
excel.newusers 15348 articles. 2 followers.

7 Replies
648 Views

Similar Articles

[PageSpeed] 3

```Try this:

A            B
1        this        that
2
3         15       =IF(A3<10,A3*A1,IF(A3<20,A3*B1,"Huh?"))

Or you can just put the multipliers into the formula itself, replacing A1 &
B1.  The last "Huh?" just lets you know that the input variable was over 20.

HTH

"newby1273" wrote:

> Here is what I want to do:
> If a cell (formatted as number) is between 0 and 10 multiply it by this.  If
> it's between 10 and 20 multiply it by that.  How do you write that?
>
> thx
```
 0
pdberger (40)
4/30/2008 11:04:01 PM
```Hi, Try this.
If your value is in A1, place this in A2
=IF(A1<=10,A1*this,IF(A1<=20,A1*that,"neither this nor that"))
Regards - Dave.

"newby1273" wrote:

> Here is what I want to do:
> If a cell (formatted as number) is between 0 and 10 multiply it by this.  If
> it's between 10 and 20 multiply it by that.  How do you write that?
>
> thx
```
 0
dave871 (679)
4/30/2008 11:54:02 PM
```Couple of questions - what happens if the cell is less than 0 or more than 20

If the cell will always be between 0 and twenty

=if(c1<=10,c1*number1,c1*number2)

If the number is exactly 10 and you want it to be multiplied by number2

=if(c1<10,c1*number1,c1*number2)

The other post have additional "checks" for value - which is fine but they
are not needed.
--
Wag more, bark less

"newby1273" wrote:

> Here is what I want to do:
> If a cell (formatted as number) is between 0 and 10 multiply it by this.  If
> it's between 10 and 20 multiply it by that.  How do you write that?
>
> thx
```
 0
5/1/2008 1:09:01 PM
```I tried this but not working:
=IF(F6<=13,F6*13.10,IF(F6<=32,F6*14.13),IF(F6<=52,F6*14.99),IF(F6<=70,F6*16.16),IF(F6<=90,F6*16.74),IF(F6<=100,F6*19.67)).
I think it's because lets say the number was 16 - that means it matches ALL
the rest of the IF's right?  So that won't work.  Any ideas?

"newby1273" wrote:

> Here is what I want to do:
> If a cell (formatted as number) is between 0 and 10 multiply it by this.  If
> it's between 10 and 20 multiply it by that.  How do you write that?
>
> thx
```
 0
newby1273 (4)
5/1/2008 3:25:00 PM
```"()" problem
=IF(F13<=13,F13*13.1,IF(F13<=32,F13*14.13,IF(F13<=52,F13*14.99,IF(F13<=70,F13*16.16,IF(F13<=90,F13*16.74,IF(F13<=100,F13*19.67)))))

Takes care of one problem - need to address when f13 (or f6) > 100

=IF(F13<=13,F13*13.1,IF(F13<=32,F13*14.13,IF(F13<=52,F13*14.99,IF(F13<=70,F13*16.16,IF(F13<=90,F13*16.74,IF(F13<=100,F13*19.67,F13*20)))))

You might consider using lookup tables - much cleaner than what you are
doing now...
--
Wag more, bark less

"newby1273" wrote:

> I tried this but not working:
> =IF(F6<=13,F6*13.10,IF(F6<=32,F6*14.13),IF(F6<=52,F6*14.99),IF(F6<=70,F6*16.16),IF(F6<=90,F6*16.74),IF(F6<=100,F6*19.67)).
>  I think it's because lets say the number was 16 - that means it matches ALL
> the rest of the IF's right?  So that won't work.  Any ideas?
>
> "newby1273" wrote:
>
> > Here is what I want to do:
> > If a cell (formatted as number) is between 0 and 10 multiply it by this.  If
> > it's between 10 and 20 multiply it by that.  How do you write that?
> >
> > thx
```
 0
5/1/2008 4:08:16 PM
```Thanks!  :)

> "()" problem
> =IF(F13<=13,F13*13.1,IF(F13<=32,F13*14.13,IF(F13<=52,F13*14.99,IF(F13<=70,F13*16.16,IF(F13<=90,F13*16.74,IF(F13<=100,F13*19.67)))))
>
> Takes care of one problem - need to address when f13 (or f6) > 100
>
> =IF(F13<=13,F13*13.1,IF(F13<=32,F13*14.13,IF(F13<=52,F13*14.99,IF(F13<=70,F13*16.16,IF(F13<=90,F13*16.74,IF(F13<=100,F13*19.67,F13*20)))))
>
> You might consider using lookup tables - much cleaner than what you are
> doing now...
> --
> Wag more, bark less
>
>
> "newby1273" wrote:
>
> > I tried this but not working:
> > =IF(F6<=13,F6*13.10,IF(F6<=32,F6*14.13),IF(F6<=52,F6*14.99),IF(F6<=70,F6*16.16),IF(F6<=90,F6*16.74),IF(F6<=100,F6*19.67)).
> >  I think it's because lets say the number was 16 - that means it matches ALL
> > the rest of the IF's right?  So that won't work.  Any ideas?
> >
> > "newby1273" wrote:
> >
> > > Here is what I want to do:
> > > If a cell (formatted as number) is between 0 and 10 multiply it by this.  If
> > > it's between 10 and 20 multiply it by that.  How do you write that?
> > >
> > > thx
```
 0
newby1273 (4)
5/1/2008 5:58:21 PM
```If you would be so kind as "click" the button that indicates your question
has been answered, that would be great.
--
Wag more, bark less

"newby1273" wrote:

> Thanks!  :)
>
>
> > "()" problem
> > =IF(F13<=13,F13*13.1,IF(F13<=32,F13*14.13,IF(F13<=52,F13*14.99,IF(F13<=70,F13*16.16,IF(F13<=90,F13*16.74,IF(F13<=100,F13*19.67)))))
> >
> > Takes care of one problem - need to address when f13 (or f6) > 100
> >
> > =IF(F13<=13,F13*13.1,IF(F13<=32,F13*14.13,IF(F13<=52,F13*14.99,IF(F13<=70,F13*16.16,IF(F13<=90,F13*16.74,IF(F13<=100,F13*19.67,F13*20)))))
> >
> > You might consider using lookup tables - much cleaner than what you are
> > doing now...
> > --
> > Wag more, bark less
> >
> >
> > "newby1273" wrote:
> >
> > > I tried this but not working:
> > > =IF(F6<=13,F6*13.10,IF(F6<=32,F6*14.13),IF(F6<=52,F6*14.99),IF(F6<=70,F6*16.16),IF(F6<=90,F6*16.74),IF(F6<=100,F6*19.67)).
> > >  I think it's because lets say the number was 16 - that means it matches ALL
> > > the rest of the IF's right?  So that won't work.  Any ideas?
> > >
> > > "newby1273" wrote:
> > >
> > > > Here is what I want to do:
> > > > If a cell (formatted as number) is between 0 and 10 multiply it by this.  If
> > > > it's between 10 and 20 multiply it by that.  How do you write that?
> > > >
> > > > thx
```
 0
5/1/2008 6:11:02 PM

Similar Artilces:

Can anyone please help with this formula. If Sheet1 Column A = nothing(blank) And Column B = \\\\\\CC\\\\\\ Then Sheet 2 B7 = SumTotal. As a regular formula would be nice or VB code Hi Richard you want nothing at all in the whole of column A in sheet 1? do you want every cell in column B of sheet 1 to have \\\\\\CC\\\\\\ or should this (can this) only appear in one cell? and what range are you summing on sheet 2 in cell B7? Cheers JulieD "Richard" <anonymous@discussions.microsoft.com> wrote in message news:82ce01c477e1\$77f0e740\$a301280a@phx.gbl... > Can anyone please ...

Appending or Up-dating a formula
I am using an =Ave function in a formula to average quite a few cell values together. I add new information all the time; sometimes 5 or 6 new cells at a time. How can I append or up-date my formula to include these new cells with out have to type the new cells into the formula? When I make the cell that has the formula in it active/edit, all of the cells that are referenced in the formula have a highlight around them. Is there a key or key combination I can press while clicking on the cells I want to add to the formula? Thanks, john Hi see your post in Excel.misc -- Regards Frank ...

Changing a range of an array in a SUMPRODUCT formula gives a #N/A error
I have a working SUMPRODUCT formula {=SUMPRODUCT((\$C\$4:\$C\$4341=z8)*(audittypefm1="Standard"))} that I need to change the 1st array to C5623. When I do I get a #N/A error. I've tried giving the range a name (empnofm2), and I've verified all the data in the C4:C5623 range is formated the same (general, it is all employee numbers from 2 to 5 digits long. I'm using a "trim all" macro which is working great. I am unable to determine what is causing the #N/A and how to fix it. Basically I copied an entire worksheet within the same workbook and changed the name, wh...

help with a formula #5
I have 98 sets of magazines each set has 12 in the set what formula can I use to get a total of issues in all sets have you tried 98*12 -- Don Guillett SalesAid Software dguillett1@austin.rr.com "Just Me" <no@isp.com> wrote in message news:eZ66ZEGHGHA.1192@TK2MSFTNGP11.phx.gbl... >I have 98 sets of magazines each set has 12 in the set > > what formula can I use to get a total of issues in all sets > =98*12 or =A1*A2 if the numbers are in A1 and A2 -- HTH Bob Phillips (remove nothere from email address if mailing direct) "Just Me" <n...

Match #2
Hi, I have references on sheet 1 column A and I have part of these references on sheet 2 column A as well. On Sheet 1 column B, I want to put "Yes" for references on sheet 1 which match references on Sheet 2 and "No" for otherwise. N.B: There might be several rows with the same referece on Sheet 1, while on sheet 2 there is a unique reference for each raw. -- tarig Hi Tarig In sheet1,type in cell B1 the formula below. =IF(A1=Sheet2!A1,"yes","no") Regards Cimjet "Tarig" <Tarig@discussions.microsoft.com> wrote in message news:C9A84...

Dead Server in Exchange 5.5 #2
Hi Is it possible to remove a dead server from the exchange directory in 5.5 that is in a different site? I have had the suggestion to highlight the server and press delete but this is not available when the server is in another site. Also does simply highlighting and pressing delete fully clean that server from exchange? Thanks Gary You have to connect to a server in the site in question to delete, I believe. If this is the last server in the site, then you should remove the whole site. http://support.microsoft.com/default.aspx?scid=kb;en-us;324340 -- David Wilhoit Exchange MV...

Formula #29
Hi, What formula should I use if I want it to look at a specific cell and then work out the total number between two numbers. e.g. if cell H6 had 7-4 entered the number 9 would be returned. Thanks in advance I'm not sure how you got 9, but your life would be much easier if you used two separate cells and then subtracted the smaller from the larger (and then added one???). Boenerge wrote: > > Hi, > What formula should I use if I want it to look at a specific cell and then > work out the total number between two numbers. > e.g. if cell H6 had 7-4 entered the number 9 woul...

How do YOU organize the Excel projects? #2
I am not a pro in the programming, but I wrote several macros/programs doing various stuff over the years. Some of the rutines I use for future reference. All of them are in the Module1, Module2.....Module35. If I want to find some of the projects I have to go through 30 modules to find the right one. How do pros take care of it? Thanks. You may assign names to your modules. In the VB Editor, select the module and choose View>Properties>select the name that says Module1 and change it as desired. -- Greeting from the Gulf Coast! http://myweb.cableone.net/twodays "art" <a...

Can offset be used in this formula?
Can the offset be used in the below formula for the information in column "K"? In column L have the the following formula's L46 =MAX(\$I46*1000-\$K\$46*\$J46,0) L47 =MAX(\$I47*1000-\$K\$46*\$J47,0) .... L99 =MAX(\$I99*1000-\$K\$46*\$J99,0) What I'd like to do is to copy the fomula into columns M, N, O, ... M47 =MAX(\$I47*1000-\$K\$47*\$J47,0) M48 =MAX(\$I48*1000-\$K\$47*\$J48,0) M49 =MAX(\$I49*1000-\$K\$47*\$J49,0) .... N48 =MAX(\$I48*1000-\$K\$48*\$J48,0) N49 =MAX(\$I49*1000-\$K\$48*\$J49,0) .... O50 =MAX(\$I50*1000-\$K\$50*\$J50,0) O51 =MAX(\$I51*1000-\$K\$50*\$J51,0) .... How abou...

I have a report that must be turned in the night before for tomorrow's date. Is ithere a date formula that will return tomorrow's date to a cell in Excel? One way: =TODAY() + 1 In article <668782AC-774A-475F-9821-8A4C3B14A983@microsoft.com>, "Shadyhosta" <Shadyhosta@discussions.microsoft.com> wrote: > I have a report that must be turned in the night before for tomorrow's date. > Is ithere a date formula that will return tomorrow's date to a cell in Excel? I assume that you want the date to remain static after entry. Easiest way, use 2...

Weekday formula
Can anyone help with the weekday formula. What I want to do is enter the date in say A1 11/20/2003 and have B return the answer of Thursday. Currently I use the weekday formula bu only returns the number of the day. Thanks in advance B ----------------------------------------------- ~~ Message posted from http://www.ExcelTip.com ~~View and post usenet messages directly from http://www.ExcelForum.com There are several ways to do this. One is to enter =A1 and format the cell with a custom number format of dddd. Another way is to use the function =TEXT(A1,"dddd"). -- Cordiall...

Trendline of multiple series #2
Am I able to calculate the trend over multiple sheets to get on inclusive trend using the trend function, if so how do I do i -- geooi ----------------------------------------------------------------------- geooil's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=1650 View this thread: http://www.excelforum.com/showthread.php?threadid=27890 How many data points? You cannot plot data that stretches over multiple sheets without somehow consolidating it: http://peltiertech.com/Excel/ChartsHowTo/ChartFromDiffSheets.html I'm not sure LINEST works with range...

Formula to return a formula
At least I think that's what I'm looking for. here's my situation: I've got a sheet where there is a variable (X) that changes depending on what row it is on. So I have a column (column c) that lists these variables (X is dependant on things from a different sheet). X is a muliplier that is utilized differently depending on the value of N. N is a Picklist selection and can change periodically. Or even be duplicated on more than one row. I have a vlookup that checks the value of N (column a) and needs to return a formula that has X applied if needed on the approp...

Migrating from 5.5 to 2003 #2
I have just about completed the migration from Exchange 5.5 to 2003. We have moved all the mailboxes and changed the DNS entries to the new server IP. All mail is now being sent to the new server but if I stop the Exchange service on our 5.5 server no e-mail is being sent out. I figured this part out when I noticed the queue on the new server pointing to the old server with the protocol x400 had a lot of unsent messages. Obviously the mail is being routed from the new server thru the old server but I cannot figure out where to change this so it send from the new server. Any ideas? Hi Motley...

Count formula within a named range.
Hi, How do I change the following formula =SUMIF(\$F\$39:\$F\$79,"PW Shopfitters",\$D\$39:\$D\$79)/COUNTIF(\$F\$39:\$F\$79,"PW Shopfitters") to count within a named range (PW Shopfitters). Any help would be great. Cheers, Phil Hi A range name cannot have spaces, maybe that's your problem. Name your range PW_Shopfitters. Then replace your cell references with PW_Shopfitters, eg =Sumif(PW_Shopfitters,"PW Shopfitters",............ -- j.kasselman@atlantic.net.remove_2nd_at. Randburg, Gauteng, South Africa "PW11111" wrote: > > Hi, > &g...

How to use a text formula as code formula
Hello. I have this formula loaded from a text field on a form: val([field10])+val([field20]) and I would like to use this as a code formula. I mean, if I use that in VBA code it works, but If I load from a text field it doesn't work. I need that my form use that formula stored in a text field to calculate values. Regards in advance, Marco responded to in another newsgroup. It's rarely necessary to post the same question to more than one group. If it is necessary, select all the relevant newsgroups in the "To:" or "Newsgroups:" field. That way, folks who...

Purchase Order Processing Data Has Been Damaged #2
I have a customer who has multiple POs that have been received against yet the original PO is still in the "new" status so it shows up to be received against again. I have run reconcile on the POs and it wants to change the line item status from "new" to "closed" but then it gives the error "Purchase Order Processing data has been damaged; please rebuild the data." No line item status changes are made. I have run Checklinks on the Purchasing Transactions table and that didn't make a difference. With SQL how do we rebuild the data? Have ...

Including a formula in a path name.
Dear MS, How about a new function for this one. I'm sure MANY users have the same problem as me. The research below seems quite comprehensive and has effectively come up against a brick wall. Thanks Peter Harlan Grove posted this UDF: http://www.google.com/groups?selm=hkQVb.2432%24_4.259%40www.newsranger.com Peter wrote: > > Very Helpful Papou - thank you! > Do you know of an additional / alternative method where you achieve the same tihing but are not required to have all the relevant work sheets open? > Many thanks > Peter > > "papou" wrote: > ...

FORMULA #14
What formula in access can do =COUNTIF(CAF!D:D,A3) Basicly I have 2 tables I want the 2nd table to count how many times a number is listed in the 1st table. I am trying to do this with a query and the count expression but keep getting errors. Dont bother with this one guys just figured it out AMDGUY [MCP] wrote: > What formula in access can do > =COUNTIF(CAF!D:D,A3) > > Basicly I have 2 tables > > I want the 2nd table to count how many times a number is listed in the > 1st table. I am trying to do this with a query and the count expression > but keep getting e...

Importing from Excel to Outlook #2
When I try to import to Outlook from Excel I'm having a problem with zip/postal codes. All of my zips are in New Jersey and the first number of the zip is zero (0). I set the excel worksheet to recognize that column as "special, zip code" but when Outlook tries to pull in the data it's dropping off all the zeros leaving me with a 4 digit zip, sans the zeros. So frustrating. Please help! Thanks! Perhaps format the Excel field as text? "Bob" <Bob@discussions.microsoft.com> wrote in message news:E40573F0-B8CB-41CE-B946-8FB0E179ACF3@microsoft.com... > ...

What does the \$ symbol mean in a formula?
What does the \$ symbol mean in a formula? example: =G8*(\$A\$14*2)*100 thanx The \$ is used for absolut referencing. For e.g lets take your formula =G8*(\$A\$14*2)*100 suppose you enter this formula in cell B2, now simply copy this formula one cell to the right (C2) by and one cell down (B3). C2: =H8*(\$A\$14*2)*100 B3: =G9*(\$A\$14*2)*100 So you see that The original G8 has changed, whereas \$A\$1 remains the same in both the new formulae because of the dollar signs. Mangesh "S" <S@discussions.microsoft.com> wrote in message news:D86597A4-C0A1-46AF-9DA6-FE06AB9C1FA0@mi...

formula wording
i dont know if you can do this..... if(c5=10, take the cell 5 right 3 down to it, 0) if you can, i dont know how to write it in excel language thanks if anyone can hel -- cutsygur ----------------------------------------------------------------------- cutsygurl's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=1504 View this thread: http://www.excelforum.com/showthread.php?threadid=27569 cutsygurl Wrote: > i dont know if you can do this..... > if(c5=10, take the cell 5 right 3 down to it, 0) > if you can, i dont know how to write it in excel language &...

Need to Merge 2 identical databases
Both databases are identical - same structure, related tables, etc. The difference is, they were used for different types of contacts. One was for healthcare companies, and the other for all other types. I've convinced my boss that it would be better to merge into one. Of course, both main tables will have identical id (autonumbers) numbers with different records attributed to that id number, For example, in database1 id# 3456 would be attributed to Acme Painting, while in database2, id# 3456 would be attributed to Quality Healthcare. In addition, related tables would have the id# in them...

Viewing Publisher files #2
Hi hope one of you kind people can help? Someone has sent me some files with the publisher extention of .pub on them. I have Office 97 but cannot open them in anything, is there a Microsoft viewer or some way I can download Microsoft Publisher so I can view them? Many thanks in advance On Wed, 7 Dec 2005 18:32:02 +0000, thewormman wrote (in article <33E74321-9DAA-4E97-8750-91ABAFBC143F@microsoft.com>): > Hi hope one of you kind people can help? > > Someone has sent me some files with the publisher extention of .pub on them. > I have Office 97 but cannot open them in a...

Manufacturing BOM reference designators #2
I am looking for the SQL table that contains the Reference Designator data for the Manufacturing Bill of materials. Does anyone know the SQl table name for this information? -- Doug Doug, try TARD1001, TA_Reference_Designator_Line. Frank Hamelly MCP-GP, MCT East Coast Dynamics www.eastcoast-dynamics.com Doug, try TARD1001, TA_Reference_Designator_Line. Frank Hamelly MCP-GP, MCT East Coast Dynamics www.eastcoast-dynamics.com ...