+ Reply to Thread
Results 1 to 6 of 6

Defined output based on Input given

  1. #1
    Registered User
    Join Date
    03-25-2013
    Location
    Faridabad,India
    MS-Off Ver
    Excel 2003
    Posts
    2

    Defined output based on Input given

    Hi

    i have table with 4 coloum

    first 3 contain input and last one contain output

    my query.

    in the table if all 3 input Coloum have any value it give output in 4 coloum 150

    in the table if all 2 input Coloum have any value and one is blank, it give output in 4 coloum 100

    in the table if all 1 input Coloum have any value and 2 are blank, it give output in 4 coloum 50

    in the table if all 3 input Coloum are blank, it give output in 4 coloum 0



    input 1 input 2 input 3 Output
    10 20 30 150
    10 20 100
    10 50
    0


    i would love any Function/ formula

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Defined output based on Input given

    I am not sure if this what you want, but you can try it in column E

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Defined output based on Input given

    try this....

    paste this function in output column and drag it down till your last data row

    attached file is for your reference.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Defined output based on Input given

    Naveed,
    Good!
    I did a single column comparison, which is probably wrong. What do you the return values in "" as if they were string?

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Defined output based on Input given


  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Defined output based on Input given

    Why post the same question again!!!

    http://www.excelforum.com/excel-prog...put-given.html
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

+ 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. Defined output based on Input given
    By dheeraj27 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-20-2013, 12:33 PM
  2. Generate Output Based on Pre-Defined Rules
    By Michael1776 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-20-2012, 08:09 PM
  3. Replies: 1
    Last Post: 11-22-2010, 01:52 PM
  4. Logical formula with output based on the text input
    By rusoo7 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-02-2009, 09:03 AM
  5. Automate calculation of output based on user input
    By tenn0228 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-02-2009, 06:24 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