Trying to Calculate XNPV with LAMBDA

%3CLINGO-SUB%20id%3D%22lingo-sub-3185330%22%20slang%3D%22en-US%22%3ETrying%20to%20Calculate%20XNPV%20with%20LAMBDA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3185330%22%20slang%3D%22en-US%22%3E%3CP%3EDoes%20anyone%20have%20any%20idea%20how%20to%20do%20this%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EXNPV%20goes%20like%20this%3A%3C%2FP%3E%3CP%3E-%20Rate%3C%2FP%3E%3CP%3E-%20CFs%20(this%20is%20a%20moving%20range%20as%20the%20formula%20is%20dragged)%20ex.%20A1%3AA1%20then%20A1%3AB1%3C%2FP%3E%3CP%3E-%20Dates%20(Moving%20range%20as%20the%20formula%20is%20dragged)%20ex.%20A2%3AA2%20then%20A2%3AB2%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20think%20i%20use%20the%20Map%20function%20but%20I%20can%20quite%20get%20it%20to%20work.%20Can%20anybody%20assist%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3185330%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3186170%22%20slang%3D%22en-US%22%3ERe%3A%20Trying%20to%20Calculate%20XNPV%20with%20LAMBDA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3186170%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1311655%22%20target%3D%22_blank%22%3E%40BenBE2%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPerhaps%20something%20like%20this%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20471px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F349570iB991C0FAE162A458%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Ewhich%20you%20may%20customize%20and%20wrap%20by%20lambda%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Does anyone have any idea how to do this?

 

XNPV goes like this:

- Rate

- CFs (this is a moving range as the formula is dragged) ex. A1:A1 then A1:B1

- Dates (Moving range as the formula is dragged) ex. A2:A2 then A2:B2

 

I think i use the Map function but I can quite get it to work. Can anybody assist?

2 Replies

@BenBE2 

Perhaps something like this

image.png

which you may customize and wrap by lambda

This is a solid idea. I'll give it a shot!