Solved

Google spreadsheet

Posted on 2014-03-24
5
365 Views
Last Modified: 2015-03-02
Hi All,

I have 3 sheets.
The rows B-G contain dates.
Row A contains Keywords.
The dates in each row are based on the dates entered in Column B.

I want sheet 4 to display the contents of the A rows of all 3 sheets IF the date is today….

Please find the attached excel sheet downloaded from google docs .

Thanks
Lernplan.xls
0
Comment
Question by:magento
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 15

Expert Comment

by:ChloesDad
ID: 39951806
The easiest way is by using a macro

Sub UpdateSheet(tableNo As Integer)
  
  Dim RowDate
  Dim NowDate
  Dim RowNumber As Integer
  Dim Heading As String
  
  
  
  ThisWorkbook.Sheets(tableNo).Activate
  RowNumber = 2
  
  For Each rw In ActiveSheet.Rows
    Heading = rw.Cells(1, 1).Value
  
    If Heading <> "" Then
    
        RowDate = Int(rw.Cells(1, 2).Value)
        NowDate = Int(Now)
        
        If RowDate = NowDate Then
    
            ThisWorkbook.Sheets(4).Cells(RowNumber, tableNo).Value = Heading
            RowNumber = RowNumber + 1
    
        End If
        
    End If
    
    
  
  
  Next




End Sub


Sub UpdateTable()

    Call UpdateSheet(1)
    Call UpdateSheet(2)
    Call UpdateSheet(3)


End Sub

Open in new window


You can then either call UpdateTable when the sheet loads, or set it up to be run on a hot key
0
 
LVL 5

Author Comment

by:magento
ID: 39952323
Hi,

If its an excel sheet i know how to add that macro . Is it possible to add them under google spreadsheet ? If so how ?

Thanks
0
 
LVL 5

Author Comment

by:magento
ID: 39952338
I created a module and pasted ur code and hit F5 , Nothing happened. Please advice.
0
 
LVL 15

Accepted Solution

by:
ChloesDad earned 500 total points
ID: 39952492
Firstly, it is just an excel spread sheet, or at least that's what you posted. I was able to open it in excel.


I have attached your supplied spreadsheet with my code.

Click View-Macros - View Macro. You may have to enable Macros to be able to see it. You can then click on the play button and the macro will run.
Lernplan.xlsm
0
 
LVL 5

Author Closing Comment

by:magento
ID: 39955139
Thank you .
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Explore the encryption capabilities built into Google Apps and how these features can help you meet privacy policy and regulatory compliance, but are not a full solution. Understand and compare the most popular email encryption services for Google A…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial demonstrates in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question