Help in mapping Excel Row Data into Columns by Formula


New Member
Aug 4, 2010
Hello all,

Having used Excel for many years now, I continue to come across a 'new' user challenge and this particular one has me a bit baffled.

I have a user who is using a spreadsheet whereby each row of data contains a specific customer / job. For each row, there are several columns (labeled, "Bill Cycle #1", "Bill Cycle #2", etc) where a billing cycle date is calculated for that job. The billing date(s) are tied to the start of each project (and, thus, each customer (row) in the column for "Bill Cycle #1" may be different.

Our challenge is trying to "Match" this data to a sheet which has the corresponding Week for that customer billing (and the bill amount is pulled into the corresponding column). The approach 'so far' has been to use a set of 'nested IF' statements whereby each Bill Cycle Date for a customer is checked against the WEEK columns (using Logical Operands to determine if the bill date falls within a specific week). Besides being a nasty "nested IF", the user is on Excel 2003 and is restricted to only 7 nested statements. Since a customer may have an open balance for a number of months (and billing is done biweekly), we end up being restricted in using the IF statements to compare individual bill cycle dates to corresponding Week columns.

The users aren't VBA savy and I'm nervous about taking a macro-approach. However, the nested IF won't get us there, due to being limited to 7 nested IFs. . . . Any ideas on a formulaic approach?

Some videos you may like

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).


Well-known Member
Jan 15, 2008
Office Version
365, 2016, 2010
Can you post an example of each (1) your customer billing sheet, and (2) the manner in which customer/job are identified? Is customer identifiable from job, i.e. each job number is unique between all customers?

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Latest member

This Week's Hot Topics

  • Sort code advice please
    Hi, I have the code below which im trying to edit but getting a little stuck. This was the original code which worked fine,columns A-F would sort...
  • SUMPRODUCT with nested If statement
    Hi everyone, Hope you're all well. I'm hoping someone will be able to point me in the right direction with a problem I'm having with a SUMPRODUCT...
  • VBA - simple sort is killing me!
    Hello all! This should be so easy, but not for me, apparently! I have a table of data that can be of varying lengths and widths. My current macro...
  • Compare Two Lists
    I have two Lists and I need to be able to Identify differences between them. List 100 comes from a workbook - the other is downloaded form the...
  • Formula that deducts points for each code I input.
    I am trying to create a formula that will have each student in my class start at 100 points and then for each code that I enter (PP for Poor...
  • Conditional formatting formula required for day of week and a value
    Hi, I have a really simple spreadsheet where column A is the date, column B is the activity total shown as a number and column C states the day of...