+ Reply to Thread
Results 1 to 7 of 7

Help with a multiple If statement Please

  1. #1
    Forum Contributor
    Join Date
    06-10-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    272

    Help with a multiple If statement Please

    I breed Honeybee Queens and am using excel to help manage that production against sales.
    I need to know how many mature queens are available on any given order/ day against sales and which cell builder each order is allocated to by date.

    So Sheet Queen orders cell c3 = date of order, d3 = quantity, e3 = date queen is available from cell builder, I1 = outstanding orders total.
    and Sheet Queen Stock Cell c2 = Cell builder 1,c11 number of queens mated & available, c12 = date queens are available. Cell builders run from 1 to 8 on this sheet.

    I have the following formula which almost works, and I'm sure is most inelegant. could you suggest a better way ? or at least help me to what I have working properly, many thanks.

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor aganesan99's Avatar
    Join Date
    04-26-2013
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Help with a multiple If statement Please

    Hi
    can you attach a sample workbook so to quickly solve your query.

    Thanks
    aganesan99

  3. #3
    Forum Contributor
    Join Date
    06-10-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    272

    Re: Help with a multiple If statement Please

    Hi, as requested sample workbook ( Data Removed)

    thanks for taking a look.
    Regards
    Attached Files Attached Files

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Help with a multiple If statement Please

    Hi sipa, I am just curious why in the world do you have these blank columns (D,F, H and so on) on 'Queen Stock' sheet? All it does is complicates the whole thing.

    Just one piece of your formula ",IF($I$1>'Queen Stock'!$C$11+'Queen Stock'!$E$11+'Queen Stock'!$G$11+'Queen Stock'!$I$11+'Queen Stock'!$K$11+'Queen Stock'!$M$11+'Queen Stock'!$O$11+'Queen Stock'!$Q$11,"No Avail Stock","

    could be replaced with:

    IF($I$1>SUM('Queen Stock'!$C$11:$Q$11),"No Avail Stock")

    Your formula for Days in B column could be simplified to:

    =IF(D3="","",TEXT(C3,"ddd"))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Forum Contributor
    Join Date
    06-10-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    272

    Re: Help with a multiple If statement Please

    Thanks for the reply, and the shortened code. I've now put that into my formula.

    =IF(H98=D98," ",IF($I$1<'Queen Stock'!$C$11,'Queen Stock'!$C$12,IF($I$1<=SUM('Queen Stock'!$C$11:$E$11),'Queen Stock'!$E$12,IF($I$1<=SUM('Queen Stock'!$C$11:$G$11),'Queen Stock'!$G$12,IF($I$1<=SUM('Queen Stock'!$C$11:$I$11),'Queen Stock'!$I$12,IF($I$1<=SUM('Queen Stock'!$C$11:$K$11),'Queen Stock'!$K$12,IF($I$1<=SUM('Queen Stock'!$C$11:$M$11),'Queen Stock'!$M$12,IF($I$1<=SUM('Queen Stock'!$C$11:$O$11),'Queen Stock'!$O$12,IF($I$1<=SUM('Queen Stock'!$C$11:$Q$11),'Queen Stock'!$Q$12,"No Avail Stock")))))))))

    This works fine apart from, the fact it changes every cell in the column.
    When adding a new order (a new row)I need the date the formula produces to stick in that cell, and not change all the others in the column.

    How would I achieve that ?

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Help with a multiple If statement Please

    The formula in Column B of Queen Orders can be replaced with:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Format column B as ddd
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  7. #7
    Forum Contributor
    Join Date
    06-10-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    272

    Re: Help with a multiple If statement Please

    Just wondering if anyone can help out.
    This works fine now, apart from, the fact it changes every cell in the column when adding a new order (a new row) I need the date the formula produces to stick in that cell, ie Queen orders cell, e3 = date queen is available from cell builder and not change all the others in the column.

    How would I achieve that ?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] If statement that will look among multiple criteria and generate a statement
    By liz5818 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-01-2013, 04:12 PM
  2. Need Help on Multiple IF Statement
    By NYC4LIFE in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-27-2013, 02:58 PM
  3. multiple if statement????
    By muish in forum Excel General
    Replies: 2
    Last Post: 02-02-2013, 06:58 PM
  4. IF statement using multiple variables to give multiple outcomes
    By stujordan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-06-2009, 06:46 AM
  5. Help with a multiple OR statement.
    By Pank in forum Excel General
    Replies: 2
    Last Post: 07-11-2006, 01:35 PM

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