Function INDIRECT in combination with ADDRESS

Diskutiere und helfe bei Function INDIRECT in combination with ADDRESS im Bereich Microsoft Office im Windows Info bei einer Lösung; Dear all, I do have a problem in finding a way to express a variable combination of formulas for the following task: An investment in year x is... Dieses Thema im Forum "Microsoft Office" wurde erstellt von walled.61, 18. Februar 2019.

  1. walled.61
    walled.61 Gast

    Function INDIRECT in combination with ADDRESS


    Dear all,


    I do have a problem in finding a way to express a variable combination of formulas for the following task:

    An investment in year x is repayed in year x + n in which n represents "30" (but should be variable)

    When I use the formula "=-INDIRECT("R(-3)C(-30)";FALSE) then it works. But I like to make the reference to a cell in the spreadsheet "assumptions"

    I tried to use ADDRESS(12;3;;;ASSUMPTIONS!) instead 30 but it does not work.

    =-INDIRECT("R(-3)C(-ADDRESS(12;3;;;ASSUMPTIONS!))";FALSE)

    Can someone help me please to find a solution for my problem?


    thanks
     
  2. walled.61 Win User

    Function INDIRECT in combination with ADDRESS

    thank you it works

    rgds

    Walter
  3. Claus Busch Win User

    Function INDIRECT in combination with ADDRESS

    Hi,

    try:

    =INDIRECT("R(-3)C("&INDIRECT(ADDRESS(12,3,,,"ASSUMPTION"))&")",0)

    Claus
  4. Irish Beast Win User

    Spaltensuche mit Hilfe von Address und Match

    ah..ok... also Breite und Hoehe nur angeben, wenn ich mit der Offset eine Summe erstellen will. Gut, macht Sinn. Danke :).

    Nun stehe ich vor der Indirect Formel. Habe folgendes:

    =SUM(INDIRECT("SumP Data!"&LEFT(ADDRESS(1,MATCH($B17,'SumP Data'!$D$1:$P$1,0)+COLUMN('SumP Data'!$C$1),4),1)&":"&LEFT(ADDRESS(1,MATCH($B17,'SumP Data'!$D$1:$P$1,0)+COLUMN('SumP Data'!$C$1),4),1)))

    Diese wirft mir immer wieder ein #Ref! Fehler aus. Lasse ich die Formel mit der ExcelHilfe durchlaufen, dann komme ich bis =Sum(Indirect("SumP Data!F:F")), danach kommt dann der Fehler und ich Weiss beim besten Willen nicht wieso.

    Ich arbeite hier mit Column, da er sonst bei mir mit Address immer von Spalte 1 aus rechnet und dann nicht auf F sondern C kommt.

    Aber wiegesagt, beim Durchlaufen der Formel scheint alles zu klappen. Alles wird gefunden und errechnet, nur dann am Ende mit der Indirect hat Excel Probleme und wirft den Fehler aus und ich Weiss nicht wo. Erst dachte ich mir fehlt irgendwo ein " oder ein
    & aber dem scheint nicht so zu sein.

    Hast du eine Idee? Wenn du mein Workbook dafuer benoetigst, sag bescheid und ich schicke es an deine Email.
  5. Andreas Killer Win User

    Verteilung

    Option Explicit

    Sub Example_Combinations()
    Dim C As Collection, Item, i As Integer

    Set C = Combinations(Array("A", "B", "C", "D", "E", "F"), 4)
    For Each Item In C
    i = i + 1
    Debug.Print i; ":", Join(Item)
    Next
    End Sub

    Function Combinations(Arr, ByVal Count As Integer) As Collection
    'Gibt alle Kombinationen von Count Elementen in Arr als Arrays in einer Collection zurück
    'Returns all combinations of Count elements in Arr as arrays in a collection
    Dim Index() As Long
    Dim Result()
    Dim i As Long, j As Integer
    'Create a collection
    Set Combinations = New Collection
    'Return empty collection if Count exceed the bound's of Arr
    If LBound(Arr) + Count - 1 > UBound(Arr) Or Count < 1 Then Exit Function
    'Setup space for index and result array
    ReDim Index(1 To Count) As Long
    ReDim Result(1 To Count)
    'Setup index for first combination
    For i = 1 To Count
    Index(i) = LBound(Arr) + i - 1
    Next
    Do
    'Build combination
    For i = 1 To Count
    Result(i) = Arr(Index(i))
    Next
    'Save it
    Combinations.Add Result
    'Get next index
    i = Count
    j = 0
    Do
    'Max. position for this index reached?
    If Index(i) = UBound(Arr) - Count + i Then
    j = j + 1
    'Move index before up one step in next loop
    i = i - 1
    If i < 1 Then Exit Function
    Else
    'Increment position
    Index(i) = Index(i) + 1
    'Setup next indices
    For j = 1 To j
    i = i + 1
    Index(i) = Index(i - 1) + 1
    Next
    Exit Do
    End If
    Loop
    Loop
    End Function

    <br />
  6. Claus Busch Win User

    Mit Adresse (Straße, PLZ, Ort) den Breitengrad und Längengrad ermitteln (per Google oder ähnliches)

    Hallo Andreas,

    ich habe die Funktionen für Längen- und Breitengrade noch verändert, damit man nicht mit LEFT, MID und FIND arbeiten muss:

    Function GetLatidue(Address As String) As Double    Dim Coordinates As String
    
        Dim varCo As Variant
    
        
    
        'Get the coordinates for the given address.
    
        Coordinates = GetCoordinates(Address)
    
        
    
        'Return the latitude as number (double).
    
        If Coordinates <> "" Then
    
            varCo = Split(Coordinates, "/")
    
            GetLatidue = varCo(0)
    
        End IfEnd Function
    Function GetLongitude(Address As String) As Double    Dim Coordinates As String
    
        Dim varCo As Variant
    
        
    
        'Get the coordinates for the given address.
    
        Coordinates = GetCoordinates(Address)
    
        
    
        'Return the longitude as number (double).
    
        If Coordinates <> "" Then
    
            varCo = Split(Coordinates, "/")
    
            GetLongitude = varCo(1)
    
        End If    
    
    End Function
    Diese Änderung sind auch auf OneDrive ersichtlich.

    Mit freundlichen Grüßen

    Claus
  7. User Advert


    Hi,

    willkommen im Windows Forum!
Thema:

Function INDIRECT in combination with ADDRESS - Microsoft Office

Die Seite wird geladen...

Function INDIRECT in combination with ADDRESS - Similar Threads - Function INDIRECT combination

Forum Datum

Serienbrief Wenn dann Mergefield in combination mit and or

Serienbrief Wenn dann Mergefield in combination mit and or: Hallo,ich habe nun schon einiges versucht und komme nicht weiter.Folgende Formel möchte ich erstellen{IF {OR{ MERGEFIELD Text = "1", MERGEFIELD Text = "2"} "" "Lorem ipsum"}Ich habe bereits alle...
Microsoft Office 12. Oktober 2022

Address Worries about MS Information Protection with External Users

Address Worries about MS Information Protection with External Users: Hi,I want to send an Excel file which was encrypted with MS Information Protection to an external user. They are worried that opening the file would allow me to see their MS access codes. That is...
Microsoft Office 24. Juni 2021

Adapt default storage path of attachments in combination with M365 groups in Outlook...

Adapt default storage path of attachments in combination with M365 groups in Outlook...: Is it possible to change the default storage location of M365 groups group files? SharePoint Online > Documents to e.g. SharePoint Online > Documents > Attachments A practical example: An...
Microsoft Office 24. November 2020

Help with sverweis/Vlookup function

Help with sverweis/Vlookup function: Hi, Im finding it difficult to understand the steps I need to undertake to use the Sverweis function. I currently have a list of items with quantities that I need to match with another list....
Microsoft Office 23. Oktober 2019

Audio Function O365?

Audio Function O365?: Hi, does anyone of you know, if there is an App for Audio in Office365? e.g. for Podcasts etc. Thanks, Luisa
Microsoft Office 12. Juli 2018

Function ScreenTip

Function ScreenTip: I would appreciate if Microsoft would release the next Excel version with the Function ScreenTip zoomable, maybe with handles on it like shapes/forms have it. And the Function ScreenTip should...
Microsoft Office 3. März 2018

function not working

function not working: function not working
Microsoft Office 20. März 2017
Function INDIRECT in combination with ADDRESS 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.