+ Reply to Thread
Results 1 to 5 of 5

application that requires multiple statements

  1. #1
    Registered User
    Join Date
    02-01-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Office 2003
    Posts
    7

    application that requires multiple statements

    Hi there I am looking for help in excel with multiple variables and I have hit a wall for the last 2 weeks.

    What I am trying to do;
    I want to have cell C8 in Worksheet1 to equal cells A25-A29 in Worksheet3 and also when cell F33 in Worksheet 1equal the Cells A35-A37 in worksheet3 a calculation is done based on the info in cell D18 in worksheet 1 and if it returns a limit under a set value the set value is returned…...

    Example;

    When cell C8 in worksheet 1 = A25-A29 in worksheet 3, and Cell F33 in worksheet 1 = A35 in worksheet 3, I want it to do an equation where it takes the amount from cell D18 in worksheet 1 and multiples it by 2 then divides it by 1000, but if the answer is less then 550 I want it to return 550.

    When cell C8 in worksheet 1 = A25-A29 in worksheet 3, and Cell F33 in worksheet 1 = A36 in worksheet 3 I want it to do an equation where it takes the amount from cell D18 in worksheet 1 and multiples it by 2.42 then divides it by 1000, but if the answer is less then 600 I want it to return 600. **** Only exception in this one is when C8 in worksheet 1 = A29, the calculation of D18 is still 2.00 not 2.42)

    When cell C8 in worksheet 1 = A25-A29 in worksheet 3, and Cell F33 in worksheet 1 = A37 in worksheet 3 I want it to do an equation where it takes the amount from cell D18 in worksheet 1 and multiples it by 2.70 then divides it by 1000, but if the answer is less then 650 I want it to return 650. **** Only exception in this one is when C8 in worksheet 1 = A29, the calculation of D18 is still 2.00 not 2.42)


    I have the spread sheet done if you need me to post it please PM me and I will send it via email.


    Thanks so much

    Chris
    Last edited by chrish8; 02-08-2009 at 12:20 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: application that requires multiple statements

    Welcome to the forum.

    Maybe this will get you started: for the first one, try

    =IF( AND( COUNTIF( Sheet3!A25:A29, Sheet1!C8) = ROWS(Sheet3!A25:A29), Sheet1!F33=Sheet3!A35), MAX(550, Sheet1!D18/500) )
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    02-01-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Office 2003
    Posts
    7

    Re: application that requires multiple statements

    Thank you for the reply, as I am a newbie to this I have some other questions.

    1st, where is the equation for cell D18 *2/1000?

    2nd for some reason the ROWS command is causing an error when I remove it seems to work, but again confused where the equation of D18*2/1000 is.

    3rd and last , this is what I now have =IF(AND(COUNTIF(Sheet3!A26:A29,CMP!C8),(Sheet3!A26:A29),CMP!F33=Sheet3!A35),MAX(550,CMP!D18*2/1000)) and seems to work, but how would I go about adding in the other 2 statments for cell A36 and A37 in worksheet 3?


    Thanks,

    Chris

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: application that requires multiple statements

    1st, where is the equation for cell D18 *2/1000?
    2*d18/ 1000 is the same as d18/500

    2nd for some reason the ROWS command is causing an error when I remove it seems to work, but again confused where the equation of D18*2/1000 is.
    The ROWS function counts the number of rows;

    COUNTIF( Sheet3!A25:A29, Sheet1!C8) = ROWS(Sheet3!A25:A29)

    ... tests if all five cells are the same as C8.

  5. #5
    Registered User
    Join Date
    02-01-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Office 2003
    Posts
    7

    Re: application that requires multiple statements

    Thanks SHG, for all the help, I took out the Rows command , not sure how or why but it works .

+ 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