+ Reply to Thread
Results 1 to 5 of 5

Thread: Array function highlighting cells changing from positive/negative over 2 worksheets

  1. #1
    Registered User
    Join Date
    11-01-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    1

    Array function highlighting cells changing from positive/negative over 2 worksheets

    Hi,


    If someone could I would be hugely grateful.


    I have a workbook based on temperatures that has 3 worksheets in it. What I would like help with is that I need to be able to display positive/negative sign changes (comparing 2 columns on different worksheets) and then display the contents of a different cell (that contains city name) but that is in the row.

    One worksheet has average temperatures for various cities over a certain week and is called WEEK (current)

    The 2nd worksheet has average temperatures for the same cities over the previous week and is called WEEK (previous).

    The 3rd worksheet is a summary worksheet called Summary. On this sheet I would like to create the array function that will compare column C on both WEEK (current) and WEEK (previous) and then if there is a sign change (positive to negative or vica versa) the contents of the cell in column A (this is the city name) in the same row as the relevant cell of the WEEK (current) worksheet.

    There could be multiple changes or there could be none but the results need to be displayed on the summary worksheet and not simply highlighted using excel's conditional highlighting capability.

    Pls pls pls could someone help me with the formula for this? I would be so grateful.

    Thanks Christian

  2. #2
    Valued Forum Contributor
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    1,957

    Re: Array function highlighting cells changing from positive/negative over 2 workshee

    If you could post an example workbook that would be a great deal of help.

    Is there only one entry for each city per sheet? Do the city names always appear on the same rows? How are you treating temperatures of zero?

  3. #3
    Valued Forum Contributor Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    2,297

    Re: Array function highlighting cells changing from positive/negative over 2 workshee

    Hi.

    Unless your goal is something different and I do not understand, I think the attached file, you will find your answer.

    Regards.
    Attached Files Attached Files
    Regards

    Fotis.

    I am proud that i am Greek.

    Just to know every one.We Greeks, we are nοt proud of our politicians. Υou?

    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.


    My Avadar picture, is from Athens Acropolis.
    http://www.theacropolismuseum.gr

    http://www.visitgreece.gr/

  4. #4
    Valued Forum Contributor
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    1,957

    Re: Array function highlighting cells changing from positive/negative over 2 workshee

    That's not how I read the OP's requirements at all, but I guess we're waiting for them to give us some guidance.

  5. #5
    Valued Forum Contributor
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    1,957

    Re: Array function highlighting cells changing from positive/negative over 2 workshee

    Anyway, as an intellectual exercise, assuming each city name appears only once in each sheet, that the city names are not always in the same order, that a change to or from zero is not counted as sign change and that data begins on row 2 then in column A on the summary sheet, starting at row 2, the following formula is needed ... =IF('Week (Current)'!A2="","",IFERROR(IF('Week (Current)'!C2*INDEX('Week (Previous)'!C:C,MATCH('Week (Current)'!A2,'Week (Previous)'!A:A,0),1)<>ABS('Week (Current)'!C2*INDEX('Week (Previous)'!C:C,MATCH('Week (Current)'!A2,'Week (Previous)'!A:A,0),1)),'Week (Current)'!A2,""),""))

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0