+ Reply to Thread
Results 1 to 6 of 6

report same rows between 2 sheets.

  1. #1
    Forum Contributor
    Join Date
    08-27-2019
    Location
    europa
    MS-Off Ver
    excel 2007
    Posts
    454

    report same rows between 2 sheets.

    Hello to all.
    I don't know if you need a formula or a macro.
    It has to do this:

    I write in the "cerca_note" sheet cell A2 a value from the "articoli" sheet column A.
    If this value is present, in the "cerca_note" sheet it must report in the range "A5: L50000"
    the same lines as the searched value.
    In the example shown "10007" with the yellow color in the "articoli" sheet, these lines are 7
    and these must be reported in the "search_note" sheet.
    In the example shown "10015" with the pink color in the "articoli" sheet, these lines are 2
    and these must be reported in the "search_note" sheet.

    I hope I have explained.
    thanks
    xam
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-27-2019
    Location
    europa
    MS-Off Ver
    excel 2007
    Posts
    454

    Re: report same rows between 2 sheets.

    Hello to all
    Last edited by xam99; 11-28-2020 at 09:53 AM.

  3. #3
    Forum Contributor
    Join Date
    08-27-2019
    Location
    europa
    MS-Off Ver
    excel 2007
    Posts
    454

    Re: report same rows between 2 sheets.

    Hello to all,
    maybe I got it wrong?

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: report same rows between 2 sheets.

    I believe that these formulas will work using the 2007 version.
    1. Populate cell A1 using: =COUNTIF(articoli!A6:A926,A2)
    Note that for aesthetic purposes the value in A1 could hidden by choosing the white font.
    2. Populate A5 and down using: =IF(ROWS(A$1:A1)>A$1,"",A$2)
    3. Populate B5 and down using the following array entered formula**: =IF($A5="","",INDEX(articoli!B$6:B$926,SMALL(IF(articoli!$A$6:$A$926=$A5,ROW($A$6:$A$926)-ROW($A$5)),ROWS($A$1:$A1))))
    4. Once the formula in cell B5 is copied down then drag the fill handle over to column L.
    5. [Optional] As the array entered formula will display a zero in cells that reference blank cells on the articoli sheet, conditional formatting may be applied to hide them (modeled in file).
    Note that in the attached file the formulas and conditional formatting are only copied down to row 30.
    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Contributor
    Join Date
    08-27-2019
    Location
    europa
    MS-Off Ver
    excel 2007
    Posts
    454

    Re: report same rows between 2 sheets.

    Hi jetemc, thank you
    I tried your formula.
    Works if value in text example A1008
    Not works if value is number example 1008 error #NUM!
    xam

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: report same rows between 2 sheets.

    Modify the formula in cell B5 so that it reads:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Remember, after making the change highlighted in red, to press the Ctrl, Shift and Enter keys to activate the formula before copying over and down.
    Let us know if you have any questions.

+ 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. [SOLVED] Need report with Sums for multiple rows and reduced to single rows.
    By GigG in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 9
    Last Post: 04-07-2020, 04:46 PM
  2. Replies: 0
    Last Post: 04-06-2020, 12:39 PM
  3. Macro to select a column that varies in number of rows from report to report
    By karmadog62 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-13-2019, 04:43 PM
  4. [SOLVED] How to Add New Worksheet named "Report" and run loop through all the Sheets Except "Report
    By zaska in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-11-2016, 12:51 AM
  5. Agging report, openingbalance report,customer report vab code was not working
    By rana19 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-28-2015, 03:38 AM
  6. Replies: 4
    Last Post: 08-18-2015, 10:02 AM
  7. How to validate the two sheets Report
    By learningkid0808 in forum Excel General
    Replies: 0
    Last Post: 11-16-2011, 02:16 AM

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