+ Reply to Thread
Results 1 to 20 of 20

Require Formula to extract data to then populate multiple cells

  1. #1
    Registered User
    Join Date
    01-15-2013
    Location
    Bracknell
    MS-Off Ver
    Excel 2010
    Posts
    86

    Require Formula to extract data to then populate multiple cells

    Hi,

    I am battling to sort this issue out and was dearly hoping that folks with far more knowledge than I can assist with please. The issue is quite involved and I am not sure that it is even possible.

    SCENARIO:
    I have a worksheet with 172,000 + rows and about 30 columns - called the DATA tab. I then add new worksheets that looks at the DATA tab and pulls out certain information from this tab to then create various tables and graphs - basically the aim of all of this is to create Financial reports. I have done most of the exercise but am now stuck on the following:

    ISSUE:
    See attachment: "Example Data"
    So - what is required is for a formula to look at the information in the DATA tab. It should look at
    1. Column H (WO Type) to determine what the type is. If it is a "Quote" type it then needs to,
    2. Look at Column Z (Capital?) to determine if there is a YES in this field.
    3. It then needs to look at Column AL (Division). It needs to look for Client 1
    4. If it is a QUOTE and it is also a YES and it is CLIENT 1 - then it must copy over all the blue highlighted columns to the tab which I called "Needs to populate this".
    5. The difficulty is also that one of the columns to be copied over, namely Column AJ (Status), needs to populate different columns based on the status – probably easier explained if you look at the table that it needs to populate.
    6. In addition, as this table is copied over to Word automatically, there can only be a maximum of 40 rows per table. Is this possible?

    I hope that this is enough information and that it is easy to achieve.

    Thank you in advance or for letting me know if this is possible.

    Take care,
    Andrew
    Attached Files Attached Files
    Last edited by amasson; 04-29-2013 at 06:59 AM. Reason: Solved

  2. #2
    Registered User
    Join Date
    01-15-2013
    Location
    Bracknell
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Require Formula to extract data to then populate multiple cells

    Hi Folks,

    I was wondering if any one managed to have some insight to this issue?

    Thank you kindly.
    Andrew

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Require Formula to extract data to then populate multiple cells

    Let's give a try Andrew.

    In A2, put this ARRAY formula and copy down. Same way for the other columns.

    =INDEX(Data!$V$2:$V$10000;SMALL(IF((Data!$H$2:$H$10000="Quote")*(Data!$Z$2:$Z$10000="Yes")*(Data!V$2:$V$10000="Client 1");"";ROW(Data!$V$2:$V$10000)-1);ROW(Data!AJ1)))
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

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

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    01-15-2013
    Location
    Bracknell
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Require Formula to extract data to then populate multiple cells

    Hi Fotis,

    Thank you so much for your response sir. I have looked at this and the formula seems to be returning all Work Order Types when it should only be returning data that relates to a Work Order Type of "Quote" (Column H). FOr example, in your attachment - row 2 WO (WOrk Order) Number is retunring 8842352 - but this number applies to a type of "PPM". Are you able to please confirm or am I getting it wrong?

    Thanks again,
    Andrew

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Require Formula to extract data to then populate multiple cells

    You are right! My bad!

    In A2 put this ARRAY(See my signature) Formula and copy down.

    =IFERROR(INDEX(Data!$V$2:$V$10000,SMALL(IF((Data!$H$2:$H$10000="Quote")*(Data!$Z$2:$Z$10000="Yes")*(Data!$AL$2:$AL$10000="Client 1"),ROW(Data!$V$2:$V$10000)-1),ROW(Data!AJ1))),"")

    This should gives you these results.

    8969322
    9071357
    9110044
    9197036
    9353252
    9394652
    9495999
    9526915
    9582910
    9631759

    Aren't these correct?

  6. #6
    Registered User
    Join Date
    01-15-2013
    Location
    Bracknell
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Require Formula to extract data to then populate multiple cells

    You are brilliant! I will apply this to the huge table that I have over the weekend and review it then. Is it okay if I get back to you in a few days to see how it works?

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Require Formula to extract data to then populate multiple cells

    Of course it's OK. Just i hope you have a really "strong" combuter to handle all these array formulas in a huge table..

  8. #8
    Registered User
    Join Date
    01-15-2013
    Location
    Bracknell
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Require Formula to extract data to then populate multiple cells

    Hi Fotis,

    If I wanted to only show values for Work Orders that are in the following statuses: Assigned, Service Incomplete and Service Complete - where would I put this? This is column AJ. Currently it returns all values over and above these 3 ones. I tried to amend the formula but then it displayed all blanks.

    Thanks again sir.
    Andrew

  9. #9
    Registered User
    Join Date
    01-15-2013
    Location
    Bracknell
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Require Formula to extract data to then populate multiple cells

    And no - that is also a problem. My machine takes ages to go through the processes. It is like this: Copy the formula >>> apply >>> wait 5 minutes >>> next column.... hahaha

  10. #10
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Require Formula to extract data to then populate multiple cells

    Quote Originally Posted by Fotis1991 View Post
    Of course it's OK. Just i hope you have a really "strong" combuter to handle all these array formulas in a huge table..
    Exactly as i told you....

    I believe that you need VBA for this and maybe not even Excel for this... Access perhaps...

    I hope some VBA quy will be able to helps you.

    Good luck.

  11. #11
    Registered User
    Join Date
    01-15-2013
    Location
    Bracknell
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Require Formula to extract data to then populate multiple cells

    Hi Fotis,

    Did you have a response to my previous question about only showing certain Statuses?

    As for your other response - I am fine with it taking ages...only need to run this once a month

  12. #12
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Require Formula to extract data to then populate multiple cells

    Quote Originally Posted by amasson View Post
    Hi Fotis,

    If I wanted to only show values for Work Orders that are in the following statuses: Assigned, Service Incomplete and Service Complete - where would I put this? This is column AJ. Currently it returns all values over and above these 3 ones. I tried to amend the formula but then it displayed all blanks.

    Thanks again sir.
    Andrew
    As your worksheet has many many columns..i am not sure what exactly are you asking for...

    Which formula do you try to use and where? Which is the expected results?

    Also pls notice that as time is 20:00pm here, i have to leave from the office soon...

  13. #13
    Registered User
    Join Date
    01-15-2013
    Location
    Bracknell
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Require Formula to extract data to then populate multiple cells

    Hi - no worries if you need to leave. We can pick this up next week again. That is late there! Goodness me.

    Column AJ has many different statuses in it. I only want to see results of statuses called "Service Complete", "Assigned" and "Service Incomplete".

  14. #14
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Require Formula to extract data to then populate multiple cells

    SO If it is a QUOTE and it is also a YES and it is CLIENT 1 -and AJ= "Service Complete" and "Assigned" and "Service Incomplete". ???

    Probably i'll see your reply Monday morning...

  15. #15
    Registered User
    Join Date
    01-15-2013
    Location
    Bracknell
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Require Formula to extract data to then populate multiple cells

    Hi - that is correct sir.

    Have a lovely weekend.

  16. #16
    Registered User
    Join Date
    01-15-2013
    Location
    Bracknell
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Require Formula to extract data to then populate multiple cells

    Hi Fotis,

    I hope that you had a lovely weekend sir? Did you manage to give this any further thought?

    Thank you kindly.
    Andrew

  17. #17
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Require Formula to extract data to then populate multiple cells

    Apologize for this, but i have to say that i forgot you...

    Try this.

    In AU2 of your Data Sheet, put this and copy down until the last row of data.

    =IF(OR(AJ6045="Service Complete",AJ6045="Assigned",AJ6045="Service Incomlete"),1,"")

    Then use this ARRAY formula.

    =INDEX(Data!$AJ$2:$AJ$10000,SMALL(IF((Data!$H$2:$H$10000="Quote")*(Data!$Z$2:$Z$10000="Yes")*(Data!$AL$2:$AL$10000="Client 1")*(Data!$AU$2:$AU$10000=1),"",ROW(Data!$AJ$2:$AJ$10000)-1),ROW(Data!AJ1)))

  18. #18
    Registered User
    Join Date
    01-15-2013
    Location
    Bracknell
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Require Formula to extract data to then populate multiple cells

    Good Morning,

    No worries at all - thank you still for even looking at this.

    Is there another way of doing this as copying that new formula down 200,000 rows will get quite nasty - is there nothing that I can put in the formula that will just check for these 3 items?

    Take care,
    Andrew

  19. #19
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Require Formula to extract data to then populate multiple cells

    Good morning Andrew.

    As already(at least in 2 post) explained, Your workbook contains 200000 rows and using my suggestion you use many ARRAY formulas, that "kill" your computer. I don't believe that my suggestion is the best way to go...

    I strongly believe that you need VBA for this.

    My new formula in the helper column is not the one that create problem. It's a really simple formula and to copy down you don't need more than 1 minute...and have almost zer0 memory space...

  20. #20
    Registered User
    Join Date
    01-15-2013
    Location
    Bracknell
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Require Formula to extract data to then populate multiple cells

    Hi Fotis,

    Thank you for the quick response. My issue is that I have this massive excel document and I have created loads of different reports and tables out of the DATA tab. Every week - the data tab will get updated. All my other tabs then look at this DATA tab and automatically update their various tables. The DATA tab is the only one that gets refreshed data every week and hence adding a formula to this page is something that I was looking to avoid. Can your previous array formula not have a string added that will do the trick of only showing the three statuses - no matter how big it makes it? Sorry for being a pain in the butt

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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