+ Reply to Thread
Results 1 to 5 of 5

Help copying data from a spreadsheet to another

  1. #1
    Registered User
    Join Date
    02-26-2007
    Posts
    3

    data from a spreadsheet to another

    Hello everyone
    I have a small dilemma. I need to copy or transfer information from sheet A into sheet B.
    Sheet A is a table with the 31 days of the month and revenue for each day. as the month advances I have less days in the table. Example:
    On March 1st cell A1=1
    cell A2=2 and so forth until cell A31=31
    on March 2nd Cell A1=2
    cell A2=3 and so forth until cell A30=31 and cell A31 is blank
    So everyday the numbers move up
    Now on sheet B the table does not move up. Instead they stay in the same place.
    So no matter what day it is cell A1=1 and cell A31=31.
    How can I transfer the revenue from sheet A to sheet B when sheet A always looses a day but sheet B remains the same
    Hope I was able to make myself clear.
    Thank you
    Last edited by VBA Noob; 03-07-2007 at 05:14 PM.

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527

    Talking

    Hi there,

    How do the numbers on Sheet A move up i.e. do you do it manually or is it automated via a macro?

    Kind regards,

    Robert

  3. #3
    Registered User
    Join Date
    02-26-2007
    Posts
    3

    Crystal revenue report

    We actually export the information from a Crystal report into a spreadsheet. So everytime we ask the revenue program to produce the report it search for the information starting today until the end of the month. This is why everyday there is a day less.

  4. #4
    Registered User
    Join Date
    09-03-2003
    Location
    UK
    Posts
    95

    Smile

    Hi,

    My inclination would be to use vlookup() in conjunction with iserror().

    For example in cell B1 on Sheet B:

    IF(ISERROR(VLOOKUP(A1,SheetA!$A$1:$B$31,2,FALSE))=TRUE,0,VLOOKUP(A1,SheetA!$A$1:$B$31,2,FALSE))

    This way, if the number is not present, you won't get #N/A returned. You could use ISNA() function instead of ISERROR() if you prefer.

  5. #5
    Registered User
    Join Date
    02-26-2007
    Posts
    3

    Lightbulb

    Thank you. I will work on this idea and go from there

+ 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