+ Reply to Thread
Results 1 to 6 of 6

Excel pickup wrong data

Hybrid View

  1. #1
    Registered User
    Join Date
    01-11-2014
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    44

    Excel pickup wrong data

    Hi,

    I need help with formula. In MRP tab - row Y3 is showing 174. But answer should be 56, based on tab "Historical". This is due to months in tab Historical in row 1 has many duplicates. Formula needs to pickup the correct value based on month and year.

    File as attached. Can anyone help?

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,667

    Re: Excel pickup wrong data

    The issue is probably because you use only month and not year information. You could add checking yera by:

    (depending on your separator regional settings you probably need to change all semicolons to commas)

    Formula: copy to clipboard
    =IF(Y$1="Actual";SUMPRODUCT(Historical!$E$3:$BM$12*(Historical!$E$1:$BM$1=MONTH(Y$2))*(YEAR(Historical!$E$2:$BM$2)=YEAR(Y$2))*(Historical!$A$3:$A$12=MRP!$A3));SUMPRODUCT(Forecast!$E$3:$Y$1001*(Forecast!$B$3:$B$1001=MRP!$B3)*(Forecast!$E$2:$Y$2=MRP!Y$2)))


    Another idea - instead of comparying month chcech whether date is before end of current month (you have it in row 2) and end of previous month, so:

    Formula: copy to clipboard
    =IF(Y$1="Actual";SUMPRODUCT(Historical!$E$3:$BM$12*(Historical!$E$2:$BM$2<=Y$2)*(Historical!$E$2:$BM$2>EOMONTH(Y$2;-1))*(Historical!$A$3:$A$12=MRP!$A3));SUMPRODUCT(Forecast!$E$3:$Y$1001*(Forecast!$B$3:$B$1001=MRP!$B3)*(Forecast!$E$2:$Y$2=MRP!Y$2)))


    This formula was used in attached file, so when you open it, it will use the same separator as you are normally using.
    Attached Files Attached Files
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    01-11-2014
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Excel pickup wrong data

    Great! thanks alot

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,667

    Re: Excel pickup wrong data

    Glad to hear it works.

    It would be now a good idea to mark thread as Solved. Above your first post you will find Thread Tools to do it.

    It would be lovely if you could also "add me some reputation" by clicking a small star icon in lowerleft corner of my post and then confirming in a pop-up message (note that some web-browsers try block this pop-up).

  5. #5
    Registered User
    Join Date
    01-11-2014
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Excel pickup wrong data

    Thank you. Have added reputation and close the thread.

  6. #6
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,667

    Re: Excel pickup wrong data



    Thanks for the reputation point !

+ 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. Excel graph pulling wrong values for the wrong date
    By poetstorm in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 09-06-2023, 12:17 PM
  2. [SOLVED] Need formula to pickup required data from table
    By venkat_gade10 in forum Excel General
    Replies: 6
    Last Post: 08-16-2014, 09:22 AM
  3. [SOLVED] Random data pickup from the dump with some condition
    By Shanthuday in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-04-2013, 05:58 AM
  4. [SOLVED] Pickup/Lookup Data from Various Locations/Cells and Concentrate it.
    By Everest in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-18-2012, 09:31 AM
  5. Making Excel to pickup correct value?
    By mrwadi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-02-2012, 06:57 PM
  6. How to Pickup Multiple values vertically in excel
    By voorave in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-02-2012, 04:57 AM
  7. EXCEL EVEN/ODD Cells Pickup
    By yuvaraj_d in forum Excel General
    Replies: 3
    Last Post: 01-10-2009, 07:45 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