Board index » Help Help » Technical Support




Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: excel formulas
PostPosted: Mon Mar 08, 2010 8:22 pm 
Offline
User avatar
In a van down by the river
 Profile

Joined: Sun Oct 17, 2004 6:15 am
Posts: 33031
so i have a spreadsheet that has the following information for commissions

Code:

Column
    A            b       c
10
12    $0 - $10,000 = 0%
13$10,001 - 14,000 = 2%
14$14,001 - 18,000 = 3%
15$18,001 - 22,000 = 4%
16$22,001 - 26,000 = 6%
17$26,001   = 7%


column a9 i have to the total of the product, and what i want is to compare that number in a9 and if its between a12 and b12, the commission is 0%, if its between a13 and b13, the commission is c13, if the total is between a14 and b14 then the commision is c14 and so on

how do i dod a nested if to do this. i am the first to admit i am HORRIBLE at math so any help would be appreciated

_________________
maybe we can hum along...


Top
 
 Post subject: Re: excel formulas
PostPosted: Mon Mar 08, 2010 8:29 pm 
Offline
User avatar
alot of $$$
 Profile

Joined: Mon Apr 18, 2005 11:01 pm
Posts: 25809
Location: FTW!
Gender: Male
pfft, i don't care about money.

_________________
CrowdSurge and Ten Club will conduct further investigation into this matter.


Top
 
 Post subject: Re: excel formulas
PostPosted: Tue Mar 09, 2010 12:55 am 
Offline
User avatar
Former PJ Drummer
 Profile

Joined: Wed Nov 30, 2005 4:38 am
Posts: 18049
Subject: excel formulas

Peeps wrote:
so i have a spreadsheet that has the following information for commissions

Code:

Column
    A            b       c
10
12    $0 - $10,000 = 0%
13$10,001 - 14,000 = 2%
14$14,001 - 18,000 = 3%
15$18,001 - 22,000 = 4%
16$22,001 - 26,000 = 6%
17$26,001   = 7%


column a9 i have to the total of the product, and what i want is to compare that number in a9 and if its between a12 and b12, the commission is 0%, if its between a13 and b13, the commission is c13, if the total is between a14 and b14 then the commision is c14 and so on

how do i dod a nested if to do this. i am the first to admit i am HORRIBLE at math so any help would be appreciated



When I get a spare minute I'll see if I can figure out what the logic is for a nested IF function in Excel, with cell references. I'm a bit rusty with excel formulas, but I hope I can help you figure it out. I have to go eat dinner first.

Image

This is what I've got so far. I'm wondering if the OR function can be used too. In regular programming I would use a "switch" but I don't think that's a possibility with Excel. Would be easier tho. lol..

_________________
"A waffle is like a pancake with a syrup trap." -
Mitch Hedberg


Top
 
 Post subject: Re: excel formulas
PostPosted: Tue Mar 09, 2010 2:20 am 
Offline
User avatar
Former PJ Drummer
 Profile

Joined: Wed Nov 30, 2005 4:38 am
Posts: 18049
I guess you can nest up to 7 IF functions, so here goes.

I just tested this formula ' in cell D19 and it's logical so..

Code:
=IF(AND(A9>=A12,A9<=B12), A9*C12, "not applicable")


Now I'll try and nest all 6 commission rates for ya.

_________________
"A waffle is like a pancake with a syrup trap." -
Mitch Hedberg


Top
 
 Post subject: Re: excel formulas
PostPosted: Tue Mar 09, 2010 2:26 am 
Offline
User avatar
alot of $$$
 Profile

Joined: Mon Apr 18, 2005 11:01 pm
Posts: 25809
Location: FTW!
Gender: Male
You realize peeps started this thread, right?

I guess you get more bees with honey.

_________________
CrowdSurge and Ten Club will conduct further investigation into this matter.


Top
 
 Post subject: Re: excel formulas
PostPosted: Tue Mar 09, 2010 3:00 am 
Offline
User avatar
Former PJ Drummer
 Profile

Joined: Wed Nov 30, 2005 4:38 am
Posts: 18049
given2trade wrote:
You realize peeps started this thread, right?


:|


given2trade wrote:
I guess you get more bees with honey.


I'm trying hard.




EDIT! I got it!! Just had some parenthesis in the wrong place. :oops:

Code:
=IF(AND(A9>=A12,A9<=B12), A9*C12, IF(AND(A9>=A13,A9<=B13), A9*C13,  IF(AND(A9>=A14,A9<=B14),A9*C14, IF(AND(A9>=A15,A9<=B15), A9*C15, IF(AND(A9>=A16,A9<=B16), A9*C16, IF(AND(A9>=A17,A9>=A17),A9*C17, "not applicable"))))))

_________________
"A waffle is like a pancake with a syrup trap." -
Mitch Hedberg


Top
 
 Post subject: Re: excel formulas
PostPosted: Tue Mar 09, 2010 9:13 am 
Offline
User avatar
AnalLog
 WWW  Profile

Joined: Sun Oct 17, 2004 12:40 am
Posts: 25451
Location: 111 Archer Ave.
This quite possibly is the nerdiest thread on RM.


Top
 
 Post subject: Re: excel formulas
PostPosted: Tue Mar 09, 2010 2:27 pm 
Offline
User avatar
Former PJ Drummer
 Profile

Joined: Wed Nov 30, 2005 4:38 am
Posts: 18049
Excel formulas are nerd lite, actually.

_________________
"A waffle is like a pancake with a syrup trap." -
Mitch Hedberg


Top
 
 Post subject: Re: excel formulas
PostPosted: Tue Mar 09, 2010 2:28 pm 
Offline
User avatar
Red Mosquito, my libido
 Profile

Joined: Sun May 21, 2006 2:02 am
Posts: 91597
Location: Sector 7-G
Yeah, a real nerd would write this out in c++

_________________
It takes a big man to make a threat on the internet.


Top
 
 Post subject: Re: excel formulas
PostPosted: Tue Mar 09, 2010 2:29 pm 
Offline
User avatar
Former PJ Drummer
 WWW  Profile

Joined: Fri Sep 15, 2006 11:00 am
Posts: 16093
Location: dublin
Gender: Male
Px are you any good at Excel? I dread it but i've compiled an excel spreadsheet of all my pj gigs attended under the assumption I could pull up how many Given to Flys I've seen for example, yet I can't figure that out on excel at all. Any ideas how?

I haaaate excel.

_________________
At the end of the day, it's night.


Top
 
 Post subject: Re: excel formulas
PostPosted: Tue Mar 09, 2010 2:31 pm 
Offline
User avatar
Red Mosquito, my libido
 Profile

Joined: Sun May 21, 2006 2:02 am
Posts: 91597
Location: Sector 7-G
dimejinky99 wrote:
Px are you any good at Excel? I dread it but i've compiled an excel spreadsheet of all my pj gigs attended under the assumption I could pull up how many Given to Flys I've seen for example, yet I can't figure that out on excel at all. Any ideas how?

I haaaate excel.

Wasn't there a website that had a tool that would tell you that information?

_________________
It takes a big man to make a threat on the internet.


Top
 
 Post subject: Re: excel formulas
PostPosted: Tue Mar 09, 2010 2:32 pm 
Offline
User avatar
Former PJ Drummer
 WWW  Profile

Joined: Fri Sep 15, 2006 11:00 am
Posts: 16093
Location: dublin
Gender: Male
:lol:
it had pretty colours too if i remember correctly.

_________________
At the end of the day, it's night.


Top
 
 Post subject: Re: excel formulas
PostPosted: Tue Mar 09, 2010 3:08 pm 
Offline
User avatar
Former PJ Drummer
 Profile

Joined: Wed Nov 30, 2005 4:38 am
Posts: 18049
dimejinky99 wrote:
Px are you any good at Excel? I dread it but i've compiled an excel spreadsheet of all my pj gigs attended under the assumption I could pull up how many Given to Flys I've seen for example, yet I can't figure that out on excel at all. Any ideas how?

I haaaate excel.



I love Excel. Love Access too. But I don't get a chance to utilize either of them much. At my last job I was using them, but I encountered a tall poppy situation.

I'm not certified (story of my life), Dime! But I would use Filters (Data tab) to pull up how many times you've seen Given to Fly. :wink:

_________________
"A waffle is like a pancake with a syrup trap." -
Mitch Hedberg


Top
 
 Post subject: Re: excel formulas
PostPosted: Tue Mar 09, 2010 7:19 pm 
Offline
User avatar
In a van down by the river
 Profile

Joined: Sun Oct 17, 2004 6:15 am
Posts: 33031
nope those forumlas did not work

here is the layout of the actual sheet (formulas)

Image

sans formulas

Image

as you can see, the formulas that are showing the correct commission are hard coded in, but do not check to see if it can be any other commission rate, it assumes.

the purpose is to get a forumla to check to see where the data falls into the range of the commission chart

_________________
maybe we can hum along...


Top
 
 Post subject: Re: excel formulas
PostPosted: Tue Mar 09, 2010 8:58 pm 
Offline
User avatar
Former PJ Drummer
 Profile

Joined: Wed Nov 30, 2005 4:38 am
Posts: 18049
It helps to see the entire worksheet. You won't be able to copy and paste the formula I did, because the cell references are all skewed. But the function will work. Each cell in row 8 will require that same function but you'll need to adjust the cell parameters to call the data from the product produced in each respective cell in row 7.


I built a replica of your worksheet based on the formulas through row 6 so far. Question though: In row 7, shouldn't the results from row 6 all be multiplied by 10? You have them multiplied by 11 in cells B7 and C7.

I can adjust the formula for each cell in row 8.

brb.

_________________
"A waffle is like a pancake with a syrup trap." -
Mitch Hedberg


Top
 
 Post subject: Re: excel formulas
PostPosted: Tue Mar 09, 2010 9:41 pm 
Offline
User avatar
Former PJ Drummer
 Profile

Joined: Wed Nov 30, 2005 4:38 am
Posts: 18049
Hey Peeps, you have the commission rate in cell H8 hard coded wrong. It should be 4% not 3%. No biggie tho.

I've got your formulas. Let me know if they work. Make sure you hit enter after pasting each one into the formula bar, or the cells will get wonky.

for cell B8:
Code:
=IF(AND(B7>=A14,B7<=B14), B7*C14, IF(AND(B7>=A15,B7<=B15), B7*C15,  IF(AND(B7>=A16,B7<=B16),B7*C16, IF(AND(B7>=A17,B7<=B17), B7*C17, IF(AND(B7>=A18,B7<=B18), B7*C18, IF(AND(B7>=A19,B7>=A19),B7*C19, "not applicable"))))))


for cell C8:
Code:
=IF(AND(C7>=A14,C7<=B14), C7*C14, IF(AND(C7>=A15,C7<=B15), C7*C15,  IF(AND(C7>=A16,C7<=B16),C7*C16, IF(AND(C7>=A17,C7<=B17), C7*C17, IF(AND(C7>=A18,C7<=B18), C7*C18, IF(AND(C7>=A19,C7>=A19),C7*C19, "not applicable"))))))


for cell D8:
Code:
=IF(AND(D7>=A14,D7<=B14), D7*C14, IF(AND(D7>=A15,D7<=B15), D7*C15,  IF(AND(D7>=A16,D7<=B16),D7*C16, IF(AND(D7>=A17,D7<=B17), D7*C17, IF(AND(D7>=A18,D7<=B18), D7*C18, IF(AND(D7>=A19,D7>=A19),D7*C19, "not applicable"))))))


for cell E8:
Code:
=IF(AND(E7>=A14,E7<=B14), E7*C14, IF(AND(E7>=A15,E7<=B15), E7*C15,  IF(AND(E7>=A16,E7<=B16),E7*C16, IF(AND(E7>=A17,E7<=B17), E7*C17, IF(AND(E7>=A18,E7<=B18), E7*C18, IF(AND(E7>=A19,E7>=A19),E7*C19, "not applicable"))))))


for cell F8:
Code:
=IF(AND(F7>=A14,F7<=B14), F7*C14, IF(AND(F7>=A15,F7<=B15), F7*C15,  IF(AND(F7>=A16,F7<=B16),F7*C16, IF(AND(F7>=A17,F7<=B17), F7*C17, IF(AND(F7>=A18,F7<=B18), F7*C18, IF(AND(F7>=A19,F7>=A19),F7*C19, "not applicable"))))))


for cell G8:
Code:
=IF(AND(G7>=A14,G7<=B14), G7*C14, IF(AND(G7>=A15,G7<=B15), G7*C15,  IF(AND(G7>=A16,G7<=B16),G7*C16, IF(AND(G7>=A17,G7<=B17), G7*C17, IF(AND(G7>=A18,G7<=B18), G7*C18, IF(AND(G7>=A19,G7>=A19),G7*C19, "not applicable"))))))


for cell H8:
Code:
=IF(AND(H7>=A14,H7<=B14), H7*C14, IF(AND(H7>=A15,H7<=B15), H7*C15,  IF(AND(H7>=A16,H7<=B16),H7*C16, IF(AND(H7>=A17,H7<=B17), H7*C17, IF(AND(H7>=A18,H7<=B18), H7*C18, IF(AND(H7>=A19,H7>=A19),H7*C19, "not applicable"))))))


for cell I8:
Code:
=IF(AND(I7>=A14,I7<=B14), I7*C14, IF(AND(I7>=A15,I7<=B15), I7*C15,  IF(AND(I7>=A16,I7<=B16),I7*C16, IF(AND(I7>=A17,I7<=B17), I7*C17, IF(AND(I7>=A18,I7<=B18), I7*C18, IF(AND(I7>=A19,I7>=A19),I7*C19, "not applicable"))))))



The main parameter that is being changed for each cell in row 8 is every instance of "IF(AND(B7>" B7 becomes C7, then D7, E7 etc

_________________
"A waffle is like a pancake with a syrup trap." -
Mitch Hedberg


Top
 
 Post subject: Re: excel formulas
PostPosted: Wed Mar 10, 2010 12:40 pm 
Offline
User avatar
In a van down by the river
 Profile

Joined: Sun Oct 17, 2004 6:15 am
Posts: 33031
nope, didnt work, and im really starting to hate excel

Image

_________________
maybe we can hum along...


Top
 
 Post subject: Re: excel formulas
PostPosted: Wed Mar 10, 2010 2:30 pm 
Offline
User avatar
Former PJ Drummer
 Profile

Joined: Wed Nov 30, 2005 4:38 am
Posts: 18049
hmm..

Image


Here's a zip file to download with the worksheet I mocked up. Maybe just compare the syntax. :?
http://www.centrxsystems.com/pxzilla/peeps_function.zip

I'll break down the function in Gimp today so you have a visual aid as to how it's structured.

_________________
"A waffle is like a pancake with a syrup trap." -
Mitch Hedberg


Top
 
 Post subject: Re: excel formulas
PostPosted: Wed Mar 10, 2010 4:01 pm 
Offline
User avatar
In a van down by the river
 Profile

Joined: Sun Oct 17, 2004 6:15 am
Posts: 33031
i actually got some help elsewhere, excelforum.com

and there was really no need for a forumla


=B7*LOOKUP(B7,$A$14:$C19)

basically it looks at the first number in the column and sees if its in its range without going over, then does the multiplication itself. so if the formula is in b7, it will then multiply b7*lookup(b7, compares to $a$14 to $c$19 the range of criteria: $c19 what it multiplies it against if found )

thanks for trying

_________________
maybe we can hum along...


Top
 
 Post subject: Re: excel formulas
PostPosted: Wed Mar 10, 2010 5:09 pm 
Offline
User avatar
Former PJ Drummer
 Profile

Joined: Wed Nov 30, 2005 4:38 am
Posts: 18049
Oh yeah! A lookup table is the other way to go. Sorry, you mentioned a nested formula so I didn't even consider the alternative.

Glad you got it worked out.

_________________
"A waffle is like a pancake with a syrup trap." -
Mitch Hedberg


Top
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2  Next

Board index » Help Help » Technical Support


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
It is currently Mon Jun 17, 2024 8:09 am