
Closed
Posted
I would like an Excel macro (VBA) that works as a rule engine. The user will enter different values such as: * Blood pressure * eGFR * LDL * Diabetes (Yes/No) * Heart failure (Yes/No) * Albuminuria * Additional variables that may be added later The macro should evaluate a set of predefined rules and generate recommendations. Examples: * If blood pressure is above 140/90 → recommend treatment A. * If blood pressure is below 140/90 → display that blood pressure is normal. * If the patient has diabetes → recommend Metformin. * If the patient has diabetes and eGFR is below 45 → recommend reducing the Metformin dose. * If the patient has diabetes and eGFR is below 30 → Metformin should be contraindicated. The system must be able to handle situations where multiple rules are true at the same time. If rules conflict, the most specific or highest-priority rule should win. Example: * Diabetes → Metformin * Diabetes + eGFR <45 → Reduce Metformin dose In this case, the system should choose “Reduce Metformin dose”. I do not want to modify the VBA code every time a new rule is added. Instead, rules should be maintained in an Excel table containing: * Conditions * Priority * Recommendation * Explanation When the result is displayed, I also want to see: * The recommendation selected * Which rule was triggered * Why the rule was triggered The goal is to make it easy to maintain and expand the system with hundreds of rules in the future without rewriting the code. A way of solving this is maybe by create a form for input data, then set the macro for saving data in another tab as Database... create a table in another sheet as rules to select the right recommendation for the patient, this way I will be able to set the rules according to different options. Maybe you have different way of solving it. Looking forward for your answer. Let me know if something was unclear. Added 2 pictures that I made myself with chatgpt to simplify what I mean
Project ID: 40514088
25 proposals
Remote project
Active 6 days ago
Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
25 freelancers are bidding on average $5 USD/hour for this job

Hi, I would build it as an Excel VBA rule engine where the VBA code stays generic, while all medical rules are maintained in a separate Rules sheet. Each rule would include fields such as condition, operator, value, priority, recommendation, and explanation. The macro would read the patient inputs, compare them against the rules table, identify all triggered rules, then select the highest-priority or most specific rule when conflicts occur. A good structure would be: Input Form → enter BP, eGFR, LDL, Diabetes, Heart Failure, Albuminuria, etc. Database sheet → stores each patient/query record. Rules sheet → editable rule table, no VBA changes needed. Results sheet → shows selected recommendation, triggered rule, explanation, and any other matched rules. For example, the rules table can handle: Diabetes = Yes → Metformin → Priority 10 Diabetes = Yes AND eGFR < 45 → Reduce Metformin dose → Priority 20 Diabetes = Yes AND eGFR < 30 → Contraindicated → Priority 30 This way, the most specific rule wins automatically. I can also design the rule format so hundreds of future rules can be added simply by adding rows to Excel, without editing the VBA code.
$8 USD in 40 days
6.0
6.0

✅ Hello, I’m Naresh. With 7+ years of experience in Excel automation and VBA development, I can build a scalable rule-based recommendation engine that does not require VBA changes whenever new rules are added. ✔ User-friendly input form for patient data (BP, eGFR, LDL, Diabetes, Heart Failure, Albuminuria, etc.) ✔ Separate patient database sheet to store assessments ✔ Rules maintained in an Excel table with: • Rule ID • Conditions • Priority • Recommendation • Explanation • Active/Inactive status ✔ Automatic conflict resolution using rule priority and specificity ✔ Support for multiple matching rules ✔ Recommendation output showing: • Selected recommendation • Triggered rule • Reason the rule was triggered ✔ Scalable design capable of handling hundreds of future rules ✔ Fully documented and easy to maintain My recommended approach is a three-layer structure: Input Form → Rules Table → Recommendation Engine. This allows you to add, edit, or disable rules directly in Excel without touching the VBA code. I can also include an audit trail and searchable patient database if required. Looking forward to discussing your screenshots and workflow. Regards, Naresh
$5 USD in 40 days
5.7
5.7

With my extensive knowledge and experience in Excel, data processing, and VBA, I am highly confident in my abilities to develop and maintain the sophisticated rule engine you're seeking. I understand that your project requires a dynamic system capable of handling a variety of rules and providing clear, actionable recommendations based on user inputs. My approach involves establishing a centralized data storage system where user inputs can be seamlessly integrated with your custom-designed rules table. This will allow for easy management as new rules are added, ceasing the need for constant code rewriting. I'm also dedicated to ensuring high-quality deliverables. Therefore, every recommendation provided by the system will come with comprehensive information about the specific rule(s) triggered, why they were triggered, and the priority that determined the outcome. Understanding the critical importance of client satisfaction, I ensure consistent communication throughout projects to keep you involved and aware of progress. In short, hiring me ensures not only a highly skilled professional but also someone who is committed to delivering on time while maintaining detail-oriented accuracy. Let’s transform your complex dataset into an intelligent rule engine that streamlines your processes effectively – contact me today!
$5 USD in 40 days
5.3
5.3

Hello there, I can build an Excel VBA rule-engine workbook with an input form, patient database tab, editable rules table, priority-based conflict handling, and recommendation output showing the triggered rule and explanation. The system will be designed so you can add hundreds of future rules directly in Excel without changing the VBA code, while keeping the logic clear, maintainable, and easy to expand.
$5 USD in 40 days
5.2
5.2

I have done a similar project a week ago. I am sure you will give me more projects after this. I am interested to do this project too and ready to complete this within the timeline. Kindly check my profile to see all rating and reviews given by clients. Hoping to hear from you soon. Payment after completion.
$5 USD in 40 days
5.2
5.2

Excel, VBA professional developer, I cheked the details and ready to do the required. Yes your suggestion is right, a Form to collect user fast input , apply rules, suggest recommondation, print report and saves the data.
$10 USD in 40 days
5.3
5.3

Hello, I am an experienced Excel VBA developer with expertise in rule engines, decision support systems, and data driven workflow automation. I can build a scalable Excel solution with a user input form, patient database sheet, and a configurable rules table where conditions, priorities, recommendations, and explanations are maintained without modifying VBA code. The engine will evaluate all matching rules, resolve conflicts using priority and specificity, and display the selected recommendation along with the triggered rule and explanation for full transparency and auditability. The architecture will support hundreds of future rules, additional clinical variables, reporting, and easy maintenance by simply updating Excel tables rather than changing code. I can also recommend a flexible rule parser design that allows complex conditions such as Diabetes = Yes AND eGFR < 45, ensuring the system remains expandable and easy to manage as requirements grow.
$5 USD in 40 days
4.6
4.6

Hello, I have carefully read your requirements, and it would be an honor to help build your Excel VBA Rule Engine. With 14 years of experience in Excel VBA, automation, decision-support systems, and database-driven workflows, I can create a scalable solution where all rules are maintained in Excel tables rather than hardcoded in VBA. My approach would be to build a user-friendly input form, a structured patient data sheet, and a configurable Rules Table containing conditions, priorities, recommendations, and explanations. The VBA engine will evaluate all matching rules, resolve conflicts using priority and specificity logic, and return the final recommendation along with the triggered rule and reasoning. The system will be designed to support hundreds of future rules and additional variables without requiring VBA code changes—new rules can simply be added through the Excel interface. I can also implement audit logging, patient history storage, rule traceability, and detailed reporting to make the solution easier to maintain and validate over time. Please check my profile for reviews and ratings from previous clients, which reflect the quality and reliability of my work. The budget and timeline can be discussed further after reviewing the sample sheets and rule structure. I am available to start immediately. Warm Regards, Harpreet Singh
$5 USD in 50 days
4.7
4.7

Hello, I am Osama. I am very interested in creating the Excel VBA macro described. I can work closely with you on a sample data or demo interface on excel to identify the possible use cases and tailor the macro to your expectations. Including the editable predefined rules table. If you are interested in working with me, please send back. Looking forward to your reply. Regards
$5 USD in 40 days
4.1
4.1

Hello, As a result of a detailed review of your project requirements, I fully understand the scope and expectations. I have experience handling similar types of Excel VBA automation, rule-based logic, and data management projects and I'm available to start your project right now. I bring strong expertise in Excel VBA, Excel Macros, Visual Basic for Apps, Data Processing, Data Management, Database Management, Data Analysis, and structured Excel automation. One of the key challenges in projects like this is building a flexible rule engine where new medical rules can be added in an Excel table without changing the VBA code each time. My approach would be to create an input form for patient values, save each record into a database sheet, and build a separate rules table with conditions, priority, recommendation, and explanation. The VBA macro would evaluate all matching rules, handle multiple true conditions, select the highest-priority or most specific recommendation, and display the selected result, triggered rule, and reason clearly. I can also structure it so the system can later expand to hundreds of rules while remaining easy to maintain. I have one quick question. • Should conflicting recommendations always be resolved by priority number, or should rule specificity also be calculated automatically? I would be glad to discuss further details and am ready to start immediately. Looking forward to hearing from you. Best regards, Carlos.
$5 USD in 40 days
3.7
3.7

Hi there, I can develop a robust Excel VBA rule engine that evaluates patient data against a configurable rules table and automatically generates recommendations based on matching conditions. The solution will include a user-friendly input form, patient database storage, and a dedicated Rules sheet where conditions, priorities, recommendations, and explanations can be maintained without modifying the VBA code. The engine will support multiple matching rules, resolve conflicts using priority and specificity logic, and clearly display the selected recommendation, triggered rule, and reason for the decision. It will also be designed to accommodate additional variables and hundreds of future rules while remaining easy to manage. The workbook will be fully documented and structured for long-term scalability. I will create the VBA framework, dynamic rule evaluation logic, data storage functionality, and reporting output, along with sample rules to demonstrate how new recommendations can be added directly through Excel tables. The final deliverable will be a maintainable clinical decision support system with testing and revisions included to ensure accuracy and reliability.
$2 USD in 40 days
3.2
3.2

Hello, I can develop a scalable Excel VBA rule engine that separates business logic from code, allowing you to add, modify, or prioritize rules directly within Excel tables without requiring VBA changes. My proposed solution includes a user-friendly input form for patient data entry, a structured Rules sheet containing conditions, priorities, recommendations, and explanations, and a VBA engine that evaluates all applicable rules automatically. The system will support multiple matching rules, resolve conflicts using configurable priority levels and specificity, and provide a clear audit trail showing the selected recommendation, the triggering rule, and the reasoning behind the decision. In addition, I can create a patient database sheet to store historical records and support future reporting requirements. The architecture will be designed to accommodate hundreds of rules and additional variables with minimal maintenance, ensuring long-term flexibility and ease of use. I would be happy to review your example screenshots and discuss the optimal rule structure before development begins. Best regards, Safdar Khalil
$3 USD in 40 days
3.3
3.3

As an experienced and detail-oriented professional in data analysis and processing, I am confident that my skills make me the perfect fit for your Excel VBA Rule Engine project. My expertise in Excel Macros and VBA, together with my ability to process and manage large amounts of data accurately, aligns perfectly with your requirements. To ensure the seamless integration of new rules into the system without altering your VBA code, my approach involves building a user-friendly input form, which saves data to an organized database tab that can be adapted for rule management. The approach also includes utilizing a separate sheet acting as a 'rules table' providing fields such as Conditions, Priority, Recommendation, and Explanation. Consequently, adding hundreds of new rules won't necessitate rewriting the code but rather focusing on maintaining the rules table. This efficient system will enhance productivity by making it easy to manage existing rules and add new ones effortlessly. Additionally, my commitment to delivering projects on time and exceeding client expectations aligns with your requirements for prompt delivery while maintaining quality. So with me on board, you can expect clean, accurate and well-organized work that not only meets but exceeds needs. Thank you in advance for considering my candidacy. I look forward to discussing how we can ensure a successful completion of this project together.
$5 USD in 40 days
1.7
1.7

BEFORE YOU HIRE ANYONE, GIVE ME 30 SECONDS TO SHOW YOU WHY I'M DIFFERENT. I recently completed a similar project developing an Excel VBA macro for medical decision support. This resulted in a streamlined process, reducing error rates by 15%. I have over five years of experience in Excel VBA development, specializing in creating dynamic rule engines for complex decision-making scenarios. Understanding your need for a scalable and easily maintainable rule engine, I propose a data-driven approach using Excel tables for rule storage and a user-friendly input form for data entry. The key to our success lies in clear communication, precise execution, and a focus on long-term adaptability. The difference between an average result and an exceptional one is usually decided before the work even begins. Regards, Patrick
$4 USD in 7 days
1.1
1.1

Building a clinical decision-support tool in Excel is exactly the challenge where architecture matters as much as code — get the structure wrong and you'll rewrite rules forever. My background is in VBA-driven data systems, and I've built rule engines for structured environments where non-technical users need full control over logic without touching code. That's precisely what you're describing. The approach I'd take separates the engine from the rules entirely. A structured Rules Sheet holds each condition set, a priority weight, the recommendation, and an explanation — all editable as a plain table. The VBA engine reads that sheet at runtime, evaluates every applicable rule against the patient's input, resolves conflicts by priority (most specific rule wins, exactly as your Metformin/eGFR example shows), and outputs a Results Panel showing what was recommended, which rule fired, and why. An Input Form captures clinical variables cleanly, and a Patient Database tab logs each session. Adding hundreds of rules later means updating the table — zero code changes needed. I've completed 5+ similar structured-logic tools in Excel and would invite you to review portfolio samples showing rule resolution and output formatting in practice. For a system built to scale, what matters more — that the input form is usable by clinical staff with no Excel training, or that the output is formatted for direct use in patient documentation? Let's scope this out together.
$5 USD in 40 days
0.0
0.0

Hi there, Your project Excel VBA Rule Engine requires Visual Basic, Data Processing, Excel, Visual Basic for Apps, Excel VBA, Excel Macros, Data Visualization, Data Analysis, Database Management, Data Management, and this is work I handle every day. With 6+ years of experience and 97 completed projects, I have helped clients move away from scattered data and manual processes toward clean, structured, and automated solutions that save real time. My skills that directly match your job include Data Analysis, Data Processing, Data Visualization, Excel, Excel Macros, Excel VBA, which means I can get started without lengthy back and forth. I deliver accurate, well-organised work and communicate clearly throughout. I am ready to start immediately, share your project details and let's get to work.
$2 USD in 40 days
0.0
0.0

I have just completed a similar project where I helped someone achieve the goal of creating an Excel VBA rule engine to automate recommendations based on specific health parameters entered by the user. I'd love to chat about your project! The worst that can happen is you walk away with a free consultation. Kind Regards, Reece
$4 USD in 7 days
0.0
0.0

Hello, I would structure this as a maintainable Excel rule engine rather than hard-code every medical condition directly into VBA. The proposed workbook would contain: ● A controlled input form for patient variables ● A rules table that can be edited without modifying the VBA code ● Separate fields for variable, operator, threshold, condition group, priority, recommendation, and explanation ● Support for multiple simultaneous conditions ● Priority handling so the most specific applicable rule overrides a general rule ● A result screen showing the selected recommendation, triggered rule, and explanation ● An optional log sheet recording inputs and generated results ● Test cases covering normal rules, overlapping rules, and conflicts The VBA code would read and evaluate the rules table dynamically, allowing the workbook to expand without rewriting the core engine each time. I would implement the clinical rules supplied and approved by you; clinical interpretation and validation would remain under your responsibility. For the first milestone, I suggest building the engine with a representative set of rules before importing the complete rule library. Best Regards, Sergej W.
$5.50 USD in 20 days
0.0
0.0

Limhamn, Sweden
Payment method verified
Member since Jun 14, 2026
₹600-1000 INR
$30-250 USD
₹12500-37500 INR
₹750-1250 INR / hour
$15-25 USD / hour
$15-25 USD / hour
₹12500-37500 INR
₹600-1500 INR
$10-30 USD
$30-250 USD
$15-25 USD / hour
₹12500-37500 INR
$250-750 AUD
₹12500-37500 INR
$10-30 USD
₹600-1500 INR
$10-30 USD
$2-8 AUD / hour
₹12500-37500 INR
₹100-400 INR / hour