+ Reply to Thread
Results 1 to 4 of 4

Auto fill in

  1. #1
    Registered User
    Join Date
    02-13-2013
    Location
    Viseu, Portugal
    MS-Off Ver
    Office 2010 Pro
    Posts
    2

    Auto fill in

    Dear all,

    Hope you are doing fine. This is my first time posting in this forum!

    I work in a Pharmaceutical Industry company, and I am currently improving a database of products vs clients (in excel) in order to ease the filling in of values. I am currently dealing with this difficulty: every product (medicine) has different dosages and presentations (28 mg in a box of 20 tablets; 56 mg in a box of 40 tablets and so on). We currently have to fill in a different row for each presentation. As an example:

    Book1.xlsx

    As there are repeated values from line to line, my idea was to type the values in the first line only. In the lines below, if I would type ANYTHING in "dosage" or "box", the columns A-E would auto fill in immediately.

    Initially, I thought of using the following function IF(OR(($F2<>"";TRANSPOSE(A2);"");($G2<>"";TRANSPOSE(A2);"")). The problem is that there are many situations in which I have to fill values in blank rows in the midst of the table. Therefore, I would have to copy-paste the formulas there, so this represented double work instead of half work

    Is there any possibility to do what I want without a macro or VBA? I ask this because I am affraid the document turns too heavy or unstable. It is really important that the workbook runs smoothly.
    If there is not any possibility at all, please be so kind as to compile a code for me, because I do not know how to do it.

    Thank you in advance for your attention.

  2. #2
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Auto fill in

    http://www.exceltip.com/show_tip/Exc...ta_/30104.html
    CC


    If you feel really indebted please consider a donation to charity. My preferred charity is ActionAid but there are plenty of worthy alternatives.

  3. #3
    Registered User
    Join Date
    02-13-2013
    Location
    Viseu, Portugal
    MS-Off Ver
    Office 2010 Pro
    Posts
    2

    Re: Auto fill in

    Thank you, that method will do for the cells that I have blank now.

    But I actually meant a method in which excel would fill the blank cells without any indication / click / anything. I wanted it to be possible just to type in the values that vary from line to line, and the values in the other columns would fill in automatically. Is it possible to do that?

    Thank you again for the quick reply

  4. #4
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Auto fill in

    You could automate something to do that with a macro, but you'd have to be more specific about what you wanted to replicate from where, based on which rules. In essence some code that looks like: "If someone types in column G, copy down the contents of columns A:F from the row above" would be very easy, but would need specifics.

+ 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