+ Reply to Thread
Results 1 to 9 of 9

Conditional Clauses

  1. #1
    Registered User
    Join Date
    09-28-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    5

    Question Conditional Clauses

    I want a cell to out put for example (if volume is xx.xx then count equals xx.xx) How do I do this? I have never programmed in excel before.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: Conditional Clauses

    Hi and welcome to the forum

    Your request (to me at least) is unclear, sorry. Could you give more detail, and perhaps give a few examples of your data and a few samples of your expected outcome?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    09-28-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Conditional Clauses

    If Volumetric = <0.1m3 (3ft3) then use 5 sensors
    If Volumetric = 0.1m3 - 8.5m3 (3ft3 - 300ft3)then use 9 sensors
    If Volumetric = 8.5m3 - 11.5m3 (300ft3 - 405ft3) then use 10 sensors
    etc...
    I want a drop down list of the different volumes to select from.
    When I select the desired volume I want another cell to populate the amount of sensors required for the selected volume.
    Later I wouldlike to link to this out put when recording test result it will expect 9 sensor readings if that was my original selection and will not allow me to proceed untill all 9 test results are filled in their respected cells.

    Is this possible?

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: Conditional Clauses

    Im sure we can come up with something (sounds like a vlookup(), however, i would suggest you upload a sample work book, (all sensitive data removed), showing what data you are working with, a few examples of what your expected outcome is, and how you arrived at that
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  5. #5
    Registered User
    Join Date
    09-28-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Conditional Clauses

    Here is an example file let's work with this?
    Attached Files Attached Files

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: Conditional Clauses

    Take a look at the attached. I used a vlookup(), but changed your combo box to a regular drop-down
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-28-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    5

    Talking Re: Conditional Clauses

    @FDibbins Thanks this helped out alot.

  8. #8
    Registered User
    Join Date
    09-28-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Conditional Clauses

    Can you explain to me step by step the process you took to achieve this? Yes i know I am the ultimate novice.
    Thanks.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: Conditional Clauses

    Sure, no problem

    1st, I moved your combo box out of the way, its not needed here (you can delete if you want)
    2. select D3, click Data tab/data validation, select list, select source, and then highlight A7:A15/OK
    3. in D4, copy this...
    =VLOOKUP($D$3,A7:H15,8,0)
    This will search for the contents of D4 in A7:A15, and then return the contents of the 8th column.

    An alternative, using your combo-box, would be to right-click into it, select Format Control, under Cell Link, click on D4

+ 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. Using clauses if theres growth?
    By omgwtf in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-08-2013, 01:42 PM
  2. If clauses
    By michelle b in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 02-22-2013, 04:41 PM
  3. issue with if clauses
    By Wyn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-30-2013, 01:16 PM
  4. Do While only evaluating one of two clauses?
    By NickSlash in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-30-2012, 10:13 AM
  5. Excel Formula with two clauses
    By jmrd in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-10-2006, 10:45 AM

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