+ Reply to Thread
Results 1 to 5 of 5

Need to calculate certain cells based on what one cell shows

  1. #1
    Registered User
    Join Date
    03-13-2008
    Posts
    87

    Need to calculate certain cells based on what one cell shows

    Hello there,

    I am trying to figure out a formula to calculate a percentage to see my profits.

    Basically I have prices for products to the left. My qty to the right and my profits to the far right. I have prices for quantities as 24-49, 50-99, 100-199, 200-499. I currently have the formula in profits to read like so: =(('PRICE' * 'PERCENTAGE') - PRICE) * 'QUANTITY' Right now I have that working. However if the quantity goes from 35 to 80, then the price of the product changes and I want that to reflect in my profits cell without having to point it to the correct cell for the "PRICE".

    I assume it's merely an if, then statement. So if 'QUANTITY' is 24-49 then it selects the price in that column. If the quantity is changed, then it will find and update the price under the correlating column.

    Does that make sense? I have attached my excel for you to view.

    Thanks so much,
    Lorne
    Attached Files Attached Files
    Last edited by NBVC; 05-03-2011 at 10:25 AM.

  2. #2
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Re: Need to calculate certain cells based on what one cell shows

    Hi

    For the price, if you use one line - 2 and price in A4-A7, then substitute the formula

    Please Login or Register  to view this content.
    Regards

    Jeff
    Last edited by solnajeff; 05-03-2011 at 09:12 AM.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Need to calculate certain cells based on what one cell shows

    Try:

    =((LOOKUP(E2,LEFT($A$1:$D$1,FIND("-",$A$1:$D$1)-1)+0,A2:D2)*$C$14)-LOOKUP(E2,LEFT($A$1:$D$1,FIND("-",$A$1:$D$1)-1)+0,A2:D2))*E2

    copied down
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Need to calculate certain cells based on what one cell shows

    I think solnajeff meant?

    IF(E2<50,A2,IF(E2<100,B2,IF(E2<200,C2,D2)))

    and inserted in your formula would be:

    =((IF(E2<50,A2,IF(E2<100,B2,IF(E2<200,C2,D2)))*$C$14)-IF(E2<50,A2,IF(E2<100,B2,IF(E2<200,C2,D2))))*E2

  5. #5
    Registered User
    Join Date
    03-13-2008
    Posts
    87

    Re: Need to calculate certain cells based on what one cell shows

    Quote Originally Posted by NBVC View Post
    =((IF(E2<50,A2,IF(E2<100,B2,IF(E2<200,C2,D2)))*$C$14)-IF(E2<50,A2,IF(E2<100,B2,IF(E2<200,C2,D2))))*E2

    Thanks to both of you! This worked great!

    Lorne

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1