Spreadsheet formula help
Results 1 to 13 of 13

Thread: Spreadsheet formula help

  1. #1
    Join Date
    Sep 2000
    Location
    Allen, TX, US
    Posts
    396

    Spreadsheet formula help

    I have a spreadsheet that am needing the data on the first tab to automatically display information that reads from a second tab list.
    What I'm running into is that the first page data needs to also read portions of the cell too.
    For example. Google should read the tab and display the words "Internet." But if the cell has 123Google, it too needs to output the same word "Internet."

    I had a friend get me started using a Findreplace function, but when just one since cell is changed it takes 20-30 minutes it displays "Calculating (8 threads): 9%"

    Any help?

  2. #2
    Join Date
    Mar 2009
    Location
    Arkham Asylum, Cell 13
    Posts
    11,751
    Sounds like you are trying to do a partial match?
    https://www.ablebits.com/office-addi...-partial-text/

    As a test:
    Put this in cell A2: =IF(COUNTIF(A1, "*google*"), "Yes", "No")
    In cell A1, type Google, or 123Google, or google456 to test

    If you have the data on another worksheet (like Sheet2):
    =IF(COUNTIF(Sheet2.A1, "*google*"), "Yes", "No")


    This is the statement I used:
    =IF(COUNTIF(cell, "*text*"), "value_if_true", "value_if_false")

  3. #3
    Join Date
    Sep 2000
    Location
    Allen, TX, US
    Posts
    396
    I'm not looking to simply do a count, but actually display text from the other tab.
    2.jpg
    1.jpg

    The first tab I would put in American..., then based on the second tab, it will show "Flights."

    The formula I have is the below. I didn't make that up, but was supplied to me.
    =IF(LEN($C2)=0,"",XLOOKUP(FINDREPLACE(RXREMOVE($C2,"#[0-9].+",TRUE,TRUE),"*","\*"),Data!$A:$A,Data!$B:$B,$H5,3,1))

    Then in a hidden column is the below:
    =IF(LEN($C2)=0,"",IFERROR(VLOOKUP($C2,Data!$A:$M,XMATCH("Look up data",Data!$2:$2),FALSE),"ADD EXPENSE TO DATA TAB"))

    I think it works, but each time I insert any text, it goes in the super long calculations: "Calculating (8 threads): 9%"

    Any idea what's going on?

  4. #4
    Join Date
    Mar 2009
    Location
    Arkham Asylum, Cell 13
    Posts
    11,751
    Hmm that is probably above my Excel skill level. I'm guessing it's a huge spreadsheet, so the xlookup and vlookup scans take a while.

    The countif is to detect the match, not do an actual count. The problem is that IF doesn't accept wildcards. Sounds like you need to reference other cells in your search, not just a text match.

    From the link I posted earlier:
    https://www.ablebits.com/office-addi...-partial-text/
    Instead of hardcoding wildcard strings in the formula, you can input them in separate cells, say D2 and F2, as shown in the screenshot below. Please notice that these cell references are locked with the $ sign so that the formula copies correctly to the below cells:

    =IF(OR(COUNTIF(A2, "*"&$D$2&"*"), COUNTIF(A2, "*"&$F$2&"*")), "Yes", "")

  5. #5
    Join Date
    Feb 2000
    Location
    Idaho Falls, Idaho, USA
    Posts
    18,247
    How many rows and columns are on each sheet? How many of the rows and columns are in the lookup tables? The calculations should not take that long. There may also be alternative ways of doing this that would be much faster.

  6. #6
    Join Date
    Sep 2000
    Location
    Allen, TX, US
    Posts
    396
    There are only 563 rows with two tabs.
    That doesn't sound like a huge spreadsheet that should take that long to calculate.

    If you want I can remove a bunch of the data to give you a raw view of what I'm trying to do.

  7. #7
    Join Date
    Feb 2000
    Location
    Idaho Falls, Idaho, USA
    Posts
    18,247
    563 rows should not take that long to do anything. If you can create a sample workbook with any sensitive data removed or replaced with non-sensitive entries, and attach it, that might give me an idea of a faster method to perform the task.

  8. #8
    Join Date
    Sep 2000
    Location
    Allen, TX, US
    Posts
    396
    Attached is the file (in zip format). When you open it, I have it with the Formulas Calculations Options set to manual. When you change it to Automatic, then try going to the data tab and add a new item and let me know what it does on your side.

    Thank you!
    Attached Files Attached Files

  9. #9
    Join Date
    Sep 2000
    Location
    Allen, TX, US
    Posts
    396
    Did anyone get a chance to look at my file I uploaded to see what's going on?
    Thank you!

  10. #10
    Join Date
    Feb 2000
    Location
    Idaho Falls, Idaho, USA
    Posts
    18,247
    I have not yet had a chance to examine the file. Maybe later tonight.

  11. #11
    Join Date
    Feb 2000
    Location
    Idaho Falls, Idaho, USA
    Posts
    18,247
    I downloaded the file. I will take a look to see what might be happening.

  12. #12
    Join Date
    Sep 2000
    Location
    Allen, TX, US
    Posts
    396
    Any update that you've found with that file? Did it semi-crash on you too when you added anything to it?

  13. #13
    Join Date
    Sep 2000
    Location
    Allen, TX, US
    Posts
    396
    Did everyone give up? I really need help on this. Thank you!

Thread Information

Users Browsing this Thread

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •