+ Reply to Thread
Results 1 to 10 of 10

Form puts data in wrong cells

  1. #1
    Registered User
    Join Date
    12-13-2016
    Location
    Jackson, MS
    MS-Off Ver
    2010
    Posts
    5

    Question Form puts data in wrong cells

    I have created a spreadsheet for my church that tracks all the contributions that are coming in. I recently created a form for them to input the data into to make it easier, but the data is not going to the correct cells. The reason for this is that the form is looking for the 1st empty Row to input the data into & the Row has formulas that are not seen working in the background. What can I do to get the data to go to the 1st empty cell in a particular column or at least not recognize the formula in the Row until the conditions are met?
    Any help on this will be greatly appreciated.

  2. #2
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Form puts data in wrong cells

    Do you have a sample workbook you can upload as this will make a resolution much easier.

    It may be that we can add the formula in after, or not.

  3. #3
    Registered User
    Join Date
    12-13-2016
    Location
    Jackson, MS
    MS-Off Ver
    2010
    Posts
    5

    Re: Form puts data in wrong cells

    I am attaching a copy that I have entered a couple of entries in both the Contribution & Expense sections. You can see that the upper lines the data was input correctly. Once I added the Autosum for Totals in the expense sheet it started putting the data down lower on the sheet & in the contributions sheet I have not found the data that I input into the sheet yet.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Form puts data in wrong cells

    Sorry but there's no attachment.

    Are you having trouble uploading?
    If posting code please use code tags, see here.

  5. #5
    Registered User
    Join Date
    12-13-2016
    Location
    Jackson, MS
    MS-Off Ver
    2010
    Posts
    5

    Re: Form puts data in wrong cells

    Apparently the file was too big. Attempting to attach again.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-13-2016
    Location
    Jackson, MS
    MS-Off Ver
    2010
    Posts
    5

    Re: Form puts data in wrong cells

    2nd attempt to attach. File was too big the 1st time.
    Attached Files Attached Files

  7. #7
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Form puts data in wrong cells

    I was able to clear up the issue by highlighting all the empty rows and clicking DELETE. The CONTRIBUTIONS sheet was writing new entries all the way down to the bottom (somewhere around the 1millionth row).

    By highlighting all the rows below the first few top ones that had entries and clicking DELETE, it in essence reset the spreadsheet. Try it on your side and see if it works.

    Attachment
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Form puts data in wrong cells

    I am not very knowledgeable about tables but using your "irow" statement in VBA placed the data at the bottom of the file.

    I changed the worksheets back to "range" format and used the following for irow

    irow=.cells(rows.count,"A").end(xlup).row

    in the "with ws" loop where you add the data.

    This added the data in the next (correct) row.

    Hopefully a VBA guru will solve the issue of determining the "lastrow" using a table structure

    Update: Logit appears to have resolved the issue!!

  9. #9
    Registered User
    Join Date
    12-13-2016
    Location
    Jackson, MS
    MS-Off Ver
    2010
    Posts
    5

    Re: Form puts data in wrong cells

    I see the changes that you have made but by doing so the total column no longer works & would have to be manually pulled down for every transaction. This is fine if I was the only person working with this sheet, but I have people who do not know much about spreadsheets or such that would not be able to manually make adjustments to get the sheet to total.
    Thanks for your help,

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Form puts data in wrong cells

    As per my previous post: Logit solved the problem.

+ 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. Is there a sort order that puts blank cells at the top?
    By calvin-c in forum Excel General
    Replies: 2
    Last Post: 12-01-2016, 02:53 PM
  2. formula that pulls data from multiple cells and puts it in every 2 rows
    By cmorten82 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-20-2014, 12:34 PM
  3. form populates the wrong data sheet
    By zak.horrocks in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-15-2014, 10:25 AM
  4. Replies: 1
    Last Post: 11-03-2013, 06:18 PM
  5. macro that puts a formula in a group of cells then goes and values those cells
    By caliskier in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-31-2007, 02:00 AM
  6. Replies: 2
    Last Post: 03-20-2007, 05:58 AM
  7. command button that puts specific numbers in a range of cells
    By ko6ad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2006, 01:41 PM

Tags for this Thread

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