• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Formula required to Distribute Invoice Payment Amount to Invoice Lines using VLOOKUP|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Formula required to Distribute Invoice Payment Amount to Invoice Lines using VLOOKUP|General Excel Questions & Answers|Excel Forum|My Online Training Hub

vba course banner

Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…Formula required to Distribute Invo…
sp_PrintTopic sp_TopicIcon
Formula required to Distribute Invoice Payment Amount to Invoice Lines using VLOOKUP
Avatar
Kevin Konikkara

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
May 25, 2021
sp_UserOfflineSmall Offline
1
May 25, 2021 - 10:22 pm
sp_Permalink sp_Print sp_EditHistory

Hey Everyone, I require a certain solution to this use case;

*Sample Data attached*

-I have a tab 'Invoices' where Invoice Name and Invoice Line Name are given along with the Invoice Line Amount in the third column of Invoice Tab.

-The second tab "Payment Amount" tab holds the payment amount for each Invoice. 

- I want to distribute the Payment amount to each of the Invoice Lines corresponding with the Invoice Name.

So Ideally the payment amount has to be distributed in a way where the first Payment Amount 1 of Invoice 1 will fill the 'distributed amount' cell with the amount until it has reached the Invoice line Amount, and then move on to the next Invoice line of Invoice 1 and fill the 'distributed amount' cell until its Invoice Line amount has been reached. I need to do this till the Payment Amount for Invoice 1 gets over and the rest of Invoice lines can be made to zero if remaining Payment Amount is 0.

I need to have an expandable formula because I will be dealing with about 10000 rows of Invoice Line. So hopefully I can just drag it till the end of all Invoice Lines.

Hope I gave some clarity on the problem,

Cheers,

Kevin 

sp_AnswersTopicSeeAnswer See Answer
Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 873
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
2
May 26, 2021 - 2:29 pm
sp_Permalink sp_Print

Hello,

See if the example in column F suits your need. There is no error handling and the formula was created in tablet version of Excel, meaning it might work differently on the computer.

Br,
Anders

sp_AnswersTopicAnswer
Answers Post
Avatar
Kevin Konikkara

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
May 25, 2021
sp_UserOfflineSmall Offline
3
May 27, 2021 - 1:29 pm
sp_Permalink sp_Print

Hey Anders,

thanks a lot for this formula, I've used an alternate formula with vlookup that took a lot of time to calculate due to nested IF loops. This formula seems to calculate rather quickly.

Thanks,

Kevin

Avatar
ones 66

New Member
Members
Level 0
Forum Posts: 1
Member Since:
December 1, 2021
sp_UserOfflineSmall Offline
4
December 1, 2021 - 2:58 pm
sp_Permalink sp_Print

I am using a different formula, but the idea is the same, and the result as well.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Geoff McClure, Louis Muti, Misael Gutierrez Sr.
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 873
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 222
Jessica Stewart: 218
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Cathi Giard
Sarah Young
Henry Delgado
Alita Nieuwoudt
KL KOH
Joao Marques
Regi Hampton
Taffie Elliott
Paramita Chakraborty
David du Toit
Forum Stats:
Groups: 3
Forums: 24
Topics: 6358
Posts: 27805

 

Member Stats:
Guest Posters: 49
Members: 32335
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.