Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-15-2017, 01:25 PM
allex011 allex011 is offline Help please Windows 7 32bit Help please Office 2007
Advanced Beginner
Help please
 
Join Date: Dec 2017
Posts: 40
allex011 is on a distinguished road
Default Help please

Could some one help me,


I have two sheets, first have values (transfer finished, company, invoice No, values in usd, eur). In second I need some formula to look is the transfer finished for some company, and if it is find all values for that company (invoice No, values in usd, eur) and fill all row (like in screenshot).
Thank in andvanced
Attached Images
File Type: jpg Help please.jpg (167.3 KB, 33 views)
Reply With Quote
  #2  
Old 12-15-2017, 02:36 PM
ProudLiberal's Avatar
ProudLiberal ProudLiberal is offline Help please Windows 7 64bit Help please Office 2010 64bit
Novice
 
Join Date: Jun 2017
Location: suburban Chicago
Posts: 28
ProudLiberal is on a distinguished road
Default

Will using filters accomplish what you want?
Attached Images
File Type: jpg filter.jpg (97.7 KB, 33 views)
Reply With Quote
  #3  
Old 12-15-2017, 03:44 PM
allex011 allex011 is offline Help please Windows 7 32bit Help please Office 2007
Advanced Beginner
Help please
 
Join Date: Dec 2017
Posts: 40
allex011 is on a distinguished road
Default

Thank you for your quick replay, but I need to filter data with some formula from first into second sheet.
Reply With Quote
  #4  
Old 12-15-2017, 04:05 PM
allex011 allex011 is offline Help please Windows 7 32bit Help please Office 2007
Advanced Beginner
Help please
 
Join Date: Dec 2017
Posts: 40
allex011 is on a distinguished road
Default

I could put in third sheet list of all company and "yes" and "no" to help build formula in second sheet.
Reply With Quote
  #5  
Old 12-15-2017, 04:39 PM
Logit Logit is offline Help please Windows 10 Help please Office 2007
Expert
 
Join Date: Jan 2017
Posts: 587
Logit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the rough
Default

Here is a macro method. Paste this macro into a Routine Module. Run from Command Button on Sheet 1 :

Code:
Option Explicit

Sub CopyYes()
    Dim c As Range
    Dim j As Integer
    Dim Source As Worksheet
    Dim Target As Worksheet
    
    Dim myString As String

    ' Change worksheet designations as needed
    Set Source = ActiveWorkbook.Worksheets("Sheet1")
    Set Target = ActiveWorkbook.Worksheets("Sheet2")
    
    myString = Application.InputBox("Enter A Search Term")
    
    j = 2     ' Start copying to row 1 in target sheet
    For Each c In Source.Range("B1:B1000")   ' Do 1000 rows
        If c = myString Then
           Source.Rows(c.Row).Copy Target.Rows(j)
           j = j + 1
        End If
    Next c
End Sub
Reply With Quote
  #6  
Old 12-16-2017, 02:19 PM
allex011 allex011 is offline Help please Windows 7 32bit Help please Office 2007
Advanced Beginner
Help please
 
Join Date: Dec 2017
Posts: 40
allex011 is on a distinguished road
Default

Thank you Logit, you save me
Reply With Quote
  #7  
Old 12-16-2017, 03:00 PM
Logit Logit is offline Help please Windows 10 Help please Office 2007
Expert
 
Join Date: Jan 2017
Posts: 587
Logit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the rough
Default

.
You are welcome.

Glad to help.
Reply With Quote
  #8  
Old 12-17-2017, 11:54 PM
ArviLaanemets ArviLaanemets is offline Help please Windows 8 Help please Office 2016
Expert
 
Join Date: May 2017
Posts: 932
ArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant future
Default

Somehow my post having attached excel file with a possible solution from Friday disappeared. Probably I'm late now, but here it is again (differently from Friday's version, I changed the file format to xlsm and added an Open event to update the query connection string and query text string whenever the file is moved or renamed).
Reply With Quote
  #9  
Old 12-18-2017, 12:14 AM
ArviLaanemets ArviLaanemets is offline Help please Windows 8 Help please Office 2016
Expert
 
Join Date: May 2017
Posts: 932
ArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant future
Default

Sorry! I forgot to attach the file!
Attached Files
File Type: zip TransfersExample.zip (21.1 KB, 16 views)
Reply With Quote
  #10  
Old 12-18-2017, 12:41 AM
allex011 allex011 is offline Help please Windows 7 32bit Help please Office 2007
Advanced Beginner
Help please
 
Join Date: Dec 2017
Posts: 40
allex011 is on a distinguished road
Default Thank you

Thank you your reply, but I have problem with excel document (I receive message " is not a valid path.make sure that the path name is correctly written and that you are connected on the server on which files are located.
Reply With Quote
  #11  
Old 12-18-2017, 01:14 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Help please Windows 7 64bit Help please Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

@Allex

Hello
as you might suspect, the title of a thread is very important :
- for you because the more descriptive it is, the higher the chance you have to get help from one or many members. Most of us usually only check thread titles to see if the subject is part of our knowledge. You will admit that " Please help" does not really " help".
- for others because when the thread is solved, they can profit from the answer to solve their own problems. The thread title can also be searched on the Net. You will admit that " please help" will not be searched for very often...

So, I would suggest, so that all can benefit from it that you change your thread title to something more descriptive.
To do this edit your first post, click " go advanced" and there you can change your title accordingly.
Thanks
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #12  
Old 12-18-2017, 01:54 AM
ArviLaanemets ArviLaanemets is offline Help please Windows 8 Help please Office 2016
Expert
 
Join Date: May 2017
Posts: 932
ArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant future
Default

Quote:
Originally Posted by allex011 View Post
I receive message " is not a valid path.make sure that the path name is correctly written and that you are connected on the server on which files are located.
It looks like ODBC query is not edited (It tries to connect with Excel file in folder of my Excel profile). The Open event must take care of it, but obviously it is disabled currently.

You can open the file anyway when you get ODBC error - simply click Cancel for error messages.

Then you must save the file into folder accessible from your computer (to hard disk, or to network resource - ODBC query reads info from the last save of file, not from instance you are working with). After that close the file and open again - When no error massages anymore, then all is OK.

When you get same error anyway, then check security settings (for macros and external connections).

When you anyway can't get the Open event or query working properly, then the last option is to edit connection manually (from menu: Data>Connections select connection, activate Properties, on tab Definition edit file path in Connection string and Command text.)

As the query reads data from save, when you enter some new transfers and want to see them in report, you have to save the file before refreshing the report.

The report is refreshed, whenever:
1. you open the file;
2. you click on Refresh All in Connections section of data menu;
3. you click on Refresh button in Workbook Connections wizard with connection selected;
4. you right-click on any cell of query's datarange on report sheet, and select Refresh from drop-down menu;
5. You select another company or Finished status on report sheet.
Reply With Quote
Reply



Other Forums: Access Forums

All times are GMT -7. The time now is 02:53 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft