+ Reply to Thread
Results 1 to 3 of 3

User input box in a IF function without macro?

  1. #1
    Forum Contributor
    Join Date
    12-27-2007
    Posts
    106

    Question User input box in a IF function without macro?

    Hi All

    Not sure if this is possible:

    I would like to write an IF function, without the use of macro, in which a user input box pops up.

    For example:

    In A2 = Vin or Vnil or Vout, then in A3, i'd like an 3 combined IF functions:

    IF(A2)="Vin", ((A2*7)/47))
    IF(A2)="Vnil", "-"
    IF(A2)="Vout",(Pop-up box to pop up and ask user to input VAT figure) - the figure then to be put into A3

    I'm sure that I can write the combined IF functions - but just need to know if a pop up user input box can be used? And if so, how to write that.

    If this is impossible then I suppose that VBA macro will have to be written.

    Hope someone can help.

    Tony
    Last edited by tony0710; 05-19-2010 at 07:49 PM. Reason: correction of typing errors

  2. #2
    Forum Contributor
    Join Date
    12-02-2008
    Location
    India
    Posts
    118

    Re: User input box in a IF function without macro?

    In Excel a Cell can either be used to write a formula or manually enter data, not both.

    But you could try the data validation route... whereby you can force the operator to enter "-" when A3 is Vnil and calculate and enter the value of A2*7/47 if A2 is Vin or otherwise free cell to enter any value when A2 is Vout

    Go to Data>Validation>Custom and enter ur validation formula

    Hope that helps

    Regards
    Mohit

    PS: A2 is Vin, Vout or Vnil, then u cant multiply A2 by 7 and divide it by 47

  3. #3
    Forum Contributor
    Join Date
    12-27-2007
    Posts
    106

    Re: User input box in a IF function without macro?

    Thanks for reply - will give that a go today - and see what happens.

    Yes you are right - the cell to be multiplied and divided is A1 - not A2 as you pointed out - sorry for the confusion

+ 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