(This is only headcanon and not the actual wandmaking process in HP)
The Ollivander family is a celebrated lineage of wandmakers, dating back to 382 BC. Since setting up shop in the British Isles, Ollivander (c. 382 BC era) studied the ancient druids and their wood lore, deepening his knowledge of wandlore and developing a unique style of wandmaking that improved upon the wands of ancient British wizardry.
The Historical Process
In the past, ancient British wizards knew enough magical knowledge to channel their magic through wand wood alone, but the quality of magic produced was often poor. Ollivander (c. 382 BC era) introduced the concept of including a wand core (a magical substance extracted from a magical creature) inside a wand wood. In his theory, Ollivander identified the core as the primary conduit of magic, because both wizards and magical creatures can use magic, while wand wood can only store magic. Inside a wand, the core channels the wizard's magic, while wood confines the channeling process and absorbs the extra magic that the core cannot contain, this ensuring that maximum magic is channeled by the wand.
For centuries, the Ollivander wandmaking process starts with the harvesting of the wand wood. The wand wood is either harvested direct from the live tree or from fallen branches. The Ollivander wandmakers knew that wand woods harvested from both methods produce different qualities of wands, which will only become apparent once the wand has been finished. Ollivander wandmakers use a signature wandmaking spell that allows them to determine which part of the harvested wood will produce good wands. The wood is then cut and then sorted by size.
Customers wishing to procure a wand will bring a wand core that they feel has the most magical affinity with them. The Ollivander wandmaker then collects personal data from the customer, such as their height, weight, date and time of birth, which all go into determining which wand wood will best suit their magical needs. After determining a suitable wand wood, the wandmaker presents to the customer a selection of cut wand wood of different lengths and asks them to select the cut wand wood length that they feel they have the most magical affinity with. Afterwards, the wandmaker proceeds with the wand creation.
The wand wood is first split lengthwise, not by sawing through, but by carefully pulling it apart by magic. This ensures that both pieces can still fit together to the tiniest grooves made by the split. The core is then placed along the length, and the wandmaker carefully fits the pieces together to hair's width of error. The Ollivander wandmaker then uses a modified Reparo spell so that the wand wood is repaired along the split, with the core melding inside perfectly with virtually no gaps or voids between the core and the wood. The newly created wand is then carved to a desirable wand shape and then sent back to the customer. Geraint Ollivander introduced the additional process of adding a secret Ollivander tracking spell to every wand that records the performance and the status of each wand and its holder.
Garrick Ollivander's Process
While this wandmaking process created far superior wands than what ancient British wizards were used to, it was still imperfect, and the wizards had to expend far more magic to achieve a desired magic effect. Garrick Ollivander was the first to experimentally modify the historical Ollivander process, and so gained a much deeper understanding of wandlore. Garrick Ollivander researched on the great compendium of wand records made by the Ollivander tracking spell, and found that certain ratios of core length and mass to wood length and mass created the best wands out of all Ollivander wands. For a given wood length, the core must have the length and position two-thirds from the wand end to the wand handle. The core mass must also be 1/7 of the wood mass.
Despite this, Garrick Ollivander still found differences in wand performance quality in wands following these ratios and having the same wood and core. He theorized that the wood and core qualities and essences themselves of each individually cut wood and core were now affecting the magical harmony of the created wand. He therefore experimented with creating wands made of harmonious cut wood and harvested core, rather than creating wands whose wood and core are harmonious with the customer.
To do this, Garrick Ollivander first "revived" the cut wand wood to ensure that its contained magical energy was revitalized to meld with the core's own magical energy. He found that soaking the wood in pure water and under 7 consecutive days' worth of sunlight revived the wand wood the best. Next, he developed a special empathy spell that gave the core and the revived wand wood with the capacity to "feel", to make two harmonious wood and core pull on each other by their complementary magical energies.
Through extensive experimentation, Garrick Ollivander developed his signature wandmaking process: A batch of revived wand wood and a batch of wand core are placed in a room with a clear roof, separate from each other. He then casts the empathy spell on the wand substances and is left for seven lunar cycles. The process is optimized if all seven full moons cast their light on the substances. During this time, Ollivander does not enter the room at all, or even cast a magical observation spell to check on the substances, otherwise, the marrying of the substances will not occur. By the end of the seventh lunar cycle, he enters the room and will always find that the harmonious wood and core have now paired together, sitting side by side.
Ollivander creates the wands from these pairings accurate to the magical wood-to-core ratios that he discovered. Finally, sure that the newly created wands are of the best quality and performance, he then lets the wand and the customer find each other: the wand and the wizard will recognize each other, and thus creating Ollivander's foundational rule of his wandlore: "The wand chooses the wizard".