+ Reply to Thread
Results 1 to 12 of 12

Auto fill type formula

  1. #1
    Registered User
    Join Date
    02-27-2011
    Location
    Aus
    MS-Off Ver
    Excel 2010
    Posts
    10

    Auto fill type formula

    Hi, im trying to find a formula for my business spreedsheet that would make it easier/faster to input values and cut down on mistakes.
    Its a kind of auto fill formula i guess, ill try to explain what i need.

    When a value is put into cell A1 it will automaticlly be placed into the next free space in the B column.
    If Column B already has values in B1, B2, B3 then the next value placed in Cell A1 with this formula will transfer the value to B4.
    Maybe add a type of update button so once all the information is filled out then the update button is pressed it will transfer the values to the required sheets/cells
    Will this be doable?
    Would this need some kind of macro setup?

    Sorry if this doesnt explain what im after very well, i just dont know how to draw up an example in excel that would give a better idea

    Thanks

  2. #2
    Registered User
    Join Date
    02-27-2011
    Location
    Manchester, England
    MS-Off Ver
    Excel 2003
    Posts
    40

    Re: Auto fill type formula

    Hi,

    I would recommend a macro

    You could use the Worksheet_SelectionChange function to detect changes within your spreadsheet. If the change has occurred within your range, a macro could then be triggered.

    Copy and paste the text below into the VB editor (alt-f11) for the worksheet you are asking questions about. It won't do much but it will give you an idea of what I mean.

    Please Login or Register  to view this content.
    Please respond if this is what you are after and require further assistance
    Last edited by MrExcelPro; 02-28-2011 at 12:38 PM.
    Regards
    MrExcelPro

  3. #3
    Registered User
    Join Date
    02-27-2011
    Location
    Aus
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Auto fill type formula

    That looks like something that would make it easier to input multiple values in the right places. Only problem is, i dont know anything about macro so im kind of stuck again on how to get this to work.
    If someone could setup a basic version of this macro for me to look at and work with that would be good.

    Something i would be looking at would be....
    Sheet 1 with the macro with 2 options Date and Price (doesnt have to be these 2, just an example)
    Sheet 2 Cell A1 will be the date column and B1 will be the Price column

    With every update i input into the macro will place the values in the next row down on each A (date) or B (price) columns.

    I will play around with it a bit too see if i can figure it out myself but if anyone can just draw up a basic one like i described above that would be very helpfull.

    Thanks

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Auto fill type formula

    MrExcelPro

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

    Your answer is absolutely useless, it does not attempt to answer the question
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    02-27-2011
    Location
    Aus
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Auto fill type formula

    Could anyone tell me if what im trying to do is possible?

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Auto fill type formula

    Not sure exactly what you want. Take a look at the Contacts Form example

    If that's not what you need then attach an example workbook

  7. #7
    Registered User
    Join Date
    02-27-2011
    Location
    Aus
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Auto fill type formula

    Yeah thats bassiclly what im after, now i just need to find out how to change it to my needs, which i guess learning a bit on how to write/change the code and what it all means.

  8. #8
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Auto fill type formula

    Post back with an example workbook if you need help implementing it
    Last edited by royUK; 03-01-2011 at 06:39 AM.

  9. #9
    Registered User
    Join Date
    02-27-2011
    Location
    Aus
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Auto fill type formula

    Starting work on it now, just going to draw up a simple one for now to see how it works. But first i need to read up on how to get macro into the sheet cause ive never worked with macros before.
    Thanks for the help

  10. #10
    Registered User
    Join Date
    02-27-2011
    Location
    Aus
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Auto fill type formula

    Ok I think ive figured it out, but im getting some error '400' box popup when i click the submit and im not sure whats causing it.
    I will post a copy of what ive done for anyone to check it out and tell me whats causing the error box to come up.

    I have something else to ask about this now.
    I've got products setup with units and price and i need to send each units value to one sheet and each price value to different sheet and at the same time i need the date to be used in both of the data sheets.
    How can i incorporate this into the same submit button? Im still not too sure on whats what in the macro code.

    Heres the workbook
    http://coronac.zoomshare.com/files/Book1.xlsm

    Thanks

  11. #11
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Auto fill type formula

    I can't see why you need to split the data to two sheets

    Your code gives an error message, have you not checked why? Option Explicit should be at the top of the Module before any code

    Your macro is in the WorkBook module & should be in a Standard module
    Last edited by royUK; 03-03-2011 at 01:49 PM.

  12. #12
    Registered User
    Join Date
    02-27-2011
    Location
    Aus
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Auto fill type formula

    I need to split the data to onto 2 different sheets because its 2 different things and if i had it all tranfered to 1 sheet then it would make the sheet much too long and difficult to find the product that im looking for if i need to reference back to it in the future.
    Im sure i had the Option Explicit at the top

+ 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