+ Reply to Thread
Results 1 to 4 of 4

Using left and right function affects my data output?

  1. #1
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Using left and right function affects my data output?

    Hello all,

    I have an issue with 2 tabs.

    Basically on my tab called Wiki Results, the cells in yellow, i WANT to use this formula:

    =LEFT(D2,1) and =right(D2,1) in cell F2 and F3. i Will drag this down

    However, this affects my scoring data on the first tab. In cell M7 on this tab, you can see 10 points is displayed. It should be 20 points, not 10.

    On Wiki Results tab, the cells in yellow, if I type 2 and 2 (with no formulas) cell M7 on the first tab, you will see 20 points is displayed. which is what i want to see. Why is this?

    my formula on the first tab may give some clues: See H7:

    =ARRAYFORMULA({"",IF(I$2:$2="",,IFERROR( IFS( MOD(COLUMN(I$2:$2),6)=3,TRANSPOSE(INDEX(SPLIT(VLOOKUP("*"&TRANSPOSE(I$2:$2)&"*",INDEX(Whatsapp!$3:$274,,MATCH(A7,Whatsapp!$2:$2,0)),1,0),":-"),,2)), MOD(COLUMN(I$2:$2),6)=5,TRANSPOSE(INDEX(SPLIT(VLOOKUP("*"&TRANSPOSE(I$2:$2)&"*",INDEX(Whatsapp!$3:$274,,MATCH(A7,Whatsapp!$2:$2,0)),1,0),":-."),,3)), MOD(COLUMN(I$2:$2),6)=1,IF(F7="",,IFERROR(5*TRANSPOSE((INDEX(SPLIT(VLOOKUP("*"&TRANSPOSE(I$2:$2)&"*",INDEX(Whatsapp!$3:$274,,MATCH(A7,Whatsapp!$2:$2,0)),1,0),":-."),,2)=D7)+(INDEX(SPLIT(VLOOKUP("*"&TRANSPOSE(I$2:$2)&"*",INDEX(Whatsapp!$3:$274,,MATCH(A7,Whatsapp!$2:$2,0)),1,0),":-."),,3)=F7)+(SIGN(INDEX(SPLIT(VLOOKUP("*"&TRANSPOSE(I$2:$2)&"*",INDEX(Whatsapp!$3:$274,,MATCH(A7,Whatsapp!$2:$2,0)),1,0),":-."),,2)-INDEX(SPLIT(VLOOKUP("*"&TRANSPOSE(I$2:$2)&"*",INDEX(Whatsapp!$3:$274,,MATCH(A7,Whatsapp!$2:$2,0)),1,0),":-."),,3))=SIGN(D7-F7))+(TRIM(INDEX(SPLIT(VLOOKUP("*"&TRANSPOSE(I$2:$2)&"*",INDEX(SUBSTITUTE(Whatsapp!$3:$274,"-","|"),,MATCH(A7,Whatsapp!$2:$2,0)),1,0),":."),,2))=D7&"|"&F7)),0)), MOD(COLUMN(I$2:$2),6)=4,TRANSPOSE(IF(REGEXMATCH(VLOOKUP("*"&TRANSPOSE(I$2:$2)&"*",INDEX(Whatsapp!$3:$274,,MATCH(A7,Whatsapp!$2:$2,0)),1,0),"Default"),"Default Score",)))))})

    Sheet is here. thANKS so much!

    https://docs.google.com/spreadsheets...it?usp=sharing
    Thanks,

    R.



  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,695

    Re: Using left and right function affects my data output?

    You should be aware that LEFT and RIGHT return text values which will not be added in a sum, so if you want them to be numbers you will have to do something like this:

    =--LEFT(D2,1)

    Actually, if it is only a single character that you want to extract, you can omit the ,1:

    =--LEFT(D2)

    Other ways of converting it to a number include adding zero, multiplying by 1, or using the VALUE function.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: Using left and right function affects my data output?

    tHANK YOU Pete, firs tsolution works!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,695

    Re: Using left and right function affects my data output?

    Glad to help, and thanks for the rep.

    Pete

+ 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. Entering new data affects sorting
    By zhenderson in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-11-2020, 06:41 PM
  2. [SOLVED] Getting wrong output vlookup & left function
    By mso3 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-28-2016, 11:35 AM
  3. Shifting cells right affects cell function
    By uncle alex in forum Excel General
    Replies: 5
    Last Post: 11-05-2013, 08:54 AM
  4. VBA to give static output of LEFT function
    By mcp21x in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-10-2009, 10:59 AM
  5. vlookup where output is column on left side of lookup
    By krayziez in forum Excel General
    Replies: 2
    Last Post: 03-13-2008, 10:36 PM
  6. How to output the left most cell?
    By Morrigan in forum Excel General
    Replies: 8
    Last Post: 01-24-2006, 10:35 AM
  7. DATA VALIDATION with LEFT function
    By Gabe in forum Excel General
    Replies: 2
    Last Post: 05-06-2005, 02:06 PM

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.6.0 RC 1