PROBLEM: Jump To A Cell Reference Within An Excel Formula

Diskutiere und helfe bei PROBLEM: Jump To A Cell Reference Within An Excel Formula im Bereich Microsoft Office im Windows Info bei einer Lösung; Hello,Is there a way to follow formulas to referenced cells similar to CTRL+ [ in Excel? The shortcut is not working. I changed the keyboard language... Dieses Thema im Forum "Microsoft Office" wurde erstellt von Markus G1, 24. April 2024.

  1. Markus G1
    Markus G1 Gast

    PROBLEM: Jump To A Cell Reference Within An Excel Formula


    Hello,Is there a way to follow formulas to referenced cells similar to CTRL+ [ in Excel? The shortcut is not working. I changed the keyboard language but without sucess. I appreciate any help.
     
  2. Realblubb Win User

    Äquivalent für ctrl + [ in der englischen Version für die deutsche/schweizer Tastatur?

  3. DaveM121 Win User

    Counting persons in one cell

    Hi J

    Here is the formula that would count the number of ; + 1 in a cell, which if all the persons were separated by a ; would work

    (Pleas Note, you will need to replace A1 with the appropriate cell reference)

    =LEN(A1)-LEN(SUBSTITUTE(A1,";","")) + 1

    However from your screenshot, sometimes a ; is used and other times a , is used to separate the persons names, and in that case, this is the formula you need

    =LEN(A1)-LEN(SUBSTITUTE(A1,";","")) + LEN(A1)-LEN(SUBSTITUTE(A1,",","")) + 1
  4. Andreas Killer Win User

    VBA Formeln per Makro in Zellen schreiben

    Nee, das geht so nicht. A) muss jedes " verdoppelt werden, weil " ist in VBA ein reserviertes Zeichen und B) musst Du FormulaLocal statt der FormulaR1C1Local nehmen.

    Und mit ActiveCell.Offset(0, 10) würde ich niemals arbeiten, weil dann landet die Formel je nach aktueller Zelle irgendwo.

    Schau Dir das Beispiel unten mal an und versuche es nach dem Schema nachzubauen.

    Andreas.

    Sub Example_HowToCreateAFormulaWithVBA()
    
     'Copy the formula from Excel as is
    
     ' =INDEX(C1:C2,MATCH($A$1,B1:B2,0))&"Whatever"
    
     'double each " sign inside:
    
     ' =INDEX(C1:C2,MATCH($A$1,B1:B2,0))&""Whatever""
    
     'surround the whole formula with " signs
    
     ' "=INDEX(C1:C2,MATCH($A$1,B1:B2,0))&""Whatever"""
    
     'Replace the cell references with a "placeholder" (any unique string that you like and doesn't exists elsewhere)
    
     ' "=INDEX(#C#,MATCH(#A#,#B#,0))&""Whatever"""
    
     'and assign to a string:
    
     Dim MyDefFormula As String
    
     MyDefFormula = "=INDEX(#C#,MATCH(#A#,#B#,0))&""Whatever"""
    
     
    
     'Now create the Range objects and refer to the real cells
    
     Dim a As Range, b As Range, c As Range
    
     Set a = Range("A1") 'A single cell
    
     Set b = Range("B2:B50") 'Multiple cells
    
     Set c = Range("C2", Range("C" & Rows.Count).End(xlUp)) 'From C2 to last used cell in column C
    
     'Note:
    
     ' You can refer to cells in an other sheet (note the dot in front of Range!):
    
     'With Worksheets("That")
    
     ' Set C = .Range("C2", .Range("C" & Rows.Count).End(xlUp))
    
     'End With
    
     ' Or other already opened files:
    
     'With Workbooks("This.xlsx").Worksheets("That")
    
     ' Set C = .Range("C2", .Range("C" & Rows.Count).End(xlUp))
    
     'End With
    
     
    
     'Make a copy of your default formula into a work string
    
     Dim MyFormula As String
    
     MyFormula = MyDefFormula
    
     'Replace the placeholders with the cell references
    
     MyFormula = Replace(MyFormula, "#A#", a.Address)
    
     'Note:
    
     ' The first arguments of Range.Address controls where the $ appears in the formula
    
     MyFormula = Replace(MyFormula, "#B#", b.Address(0, 0))
    
     'Note:
    
     ' The part 'External:=True' is necessary if you refer to other sheets or files
    
     ' But it works also if the reference is in the active sheet
    
     MyFormula = Replace(MyFormula, "#C#", c.Address(External:=True))
    
     
    
     'Write the formula into the cell
    
     Range("A2").Formula = MyFormula
    
     
    
     'Note:
    
     ' If your locale language is not English you can use the FormulaLocal property instead
    
     ' But in this case the code works only on PCs with your locale settings
    
     'Range("A2").FormulaLocal = MyFormula
    
     
    
     'Note:
    
     ' If you want to create array formulas use the FormulaArray property
    
     ' But in this case use must use English formulas, a FormulaArrayLocale doesn't exists
    
     'Range("A2:A10").FormulaArray = MyFormula
    
    End Sub
  5. Andreas Killer Win User

    Excel Quelldatei öffnen. Exakter Bereich anzeigen

    Ich habe in meiner Excel Datei Verlinkungen zu einer Quelldatei eingebaut. Leider ist es mir bisher nur gelungen anhand der Registerkarte
    -->Daten

    -->Verbindungen

    -->Verknüpfung bearbeiten

    --> Quelle öffnen

    die Quelldatei zu öffnen.
    Hmm, die Verlinkung wäre dann eine Formel ala

    ='Z:\[DateiA.xlsx]Tabelle1'!$A$1

    oder

    =[DateiA.xlsx]Tabelle1!$A$1

    wenn die Datei offen wäre oder

    =Tabelle2!N20

    oder

    =G9

    in dieser Datei?

    Und wenn die Datei noch geschlossen ist dann automatisch öffnen?

    Das läßt sich mit einem Makro machen. Kopier den Code in ein reguläres Modul Deiner PERSONAL.XLSB

    Andreas.

    Sub JumpToLink()

    'Jumps to a link source from cell formula, opens the file if not already open

    Dim Links, Item

    Dim Formula As String, Temp As String

    Dim Wb As Workbook

    'We should have a formula like this

    '='Z:\[FileA.xlsx]Sheet1'!$A$1

    If Not ActiveCell.HasFormula Then Exit Sub

    'Install an error handler, many things can fail

    On Error GoTo Errorhandler

    'Get all links in this file

    Links = ActiveWorkbook.LinkSources(Type:=xlLinkTypeExcelLinks)

    'And the formula which refers to that file

    Formula = ActiveCell.Formula

    'Remove the [] for easier search

    Temp = Replace(Formula, "[", "")

    Temp = Replace(Temp, "]", "")

    'Search for the file

    For Each Item In Links

    If InStr(1, Temp, Item, vbTextCompare) > 0 Then

    'Found, file already open?

    For Each Wb In Workbooks

    If StrComp(Wb.FullName, Item, vbTextCompare) = 0 Then

    Exit For

    End If

    Next

    'No, open the file

    If Wb Is Nothing Then Workbooks.Open Item

    'Jump to the cell

    Application.Goto Range(Mid(Formula, 2))

    'Done

    Exit Sub

    End If

    Next

    'A cell in this file is also possible

    Application.Goto Range(Mid(Formula, 2))



    Exit Sub

    Errorhandler:

    If Err.Source = "" Then Err.Source = Application.Name

    Debug.Print "Source : " & Err.Source

    Debug.Print "Error : " & Err.Number

    Debug.Print "Description: " & Err.Description

    If MsgBox("Error " & Err.Number & ": " & vbNewLine & vbNewLine & _

    Err.Description & vbNewLine & vbNewLine & _

    "Enter debug mode?", vbOKCancel + vbDefaultButton2, Err.Source) = vbOK Then

    Stop 'Press F8 twice

    Resume

    End If

    End Sub
  6. Wil1969 Win User

    Wenn-dann-Regel mit Prioritäten erstellen (Excel)

    Hi Minhokiller,
    <br />thanks for your effort. The translation didn't understand that I wanna have a complete row colored in reference to to values of certain cells.
    <br />Best reguards
    <br />Wil
    <br />P.s.: Ich weiß, Deutsches Forum.
    <br />
  7. User Advert


    Hi,

    willkommen im Windows Forum!
Thema:

PROBLEM: Jump To A Cell Reference Within An Excel Formula - Microsoft Office

Die Seite wird geladen...

PROBLEM: Jump To A Cell Reference Within An Excel Formula - Similar Threads - PROBLEM Jump Cell

Forum Datum

Excel Checkbox in Cell

Excel Checkbox in Cell: Hey,iam trying to add a checkbox in Excel, i found the developer tools and the active x elements but it only gives a checkbox above the sheet that i have to manually make smaller and adjust to the...
Microsoft Office 27. Januar 2023

How to merge cells in a table on a communication site in SharePoint?

How to merge cells in a table on a communication site in SharePoint?: How do I merge cells in an existing table on a communication site in SharePoint? I can't find this option within the tools provided. Is there a work-around?Thank you so much!Best,Nina
Microsoft Office 8. Dezember 2022

Personal Domain within a private account

Personal Domain within a private account: I have an active license Microsoft 365 family but also own a personal domain I would like to use as sender address. Using an alias within outlook.com creates strange email addresses as "from",...
Outlook.com 17. März 2021

How to condition formula on other cell content

How to condition formula on other cell content: Hi, I am not sure how else to phrase my request and hope someone can help me. I created an expense list for my project and am constantly adding new positions. The expenses are paid by several...
Microsoft Office 13. August 2020

excel reference style drops back to A1

excel reference style drops back to A1: I want to work with the R1C1 reference style in Excel. But whenever I re-open my workook, it has fallen back to A1 reference style. I managed to locate the XLSTART folder and saved there a...
Microsoft Office 30. März 2018

Permissions to distribute a Excel-Addin

Permissions to distribute a Excel-Addin: I have an Excel-Spreadsheet (xlsx file) in Excel 2013/2016 and an additional Excel addin (xll file). This two files I plan to deliver to potential customers as a testversion for free. Do I need a...
Microsoft Office 16. Januar 2018

Excel - Formula

Excel - Formula: Dear Fellows, im using an student account, Product ID: 02984-001-000001. In reference to Excel template "Online Sales Ticker" i dont understand the formula. Please inform me why "Shipping...
Microsoft Office 26. März 2017
PROBLEM: Jump To A Cell Reference Within An Excel Formula solved
  1. Diese Seite verwendet Cookies, um Inhalte zu personalisieren, diese deiner Erfahrung anzupassen und dich nach der Registrierung angemeldet zu halten.
    Auf dieser Website werden Cookies für die Zugriffsanalyse und Anzeigenmessung verwendet.
    Wenn du dich weiterhin auf dieser Seite aufhältst, akzeptierst du unseren Einsatz von Cookies.