bs0d
Well-known Member
- Joined
- Dec 29, 2006
- Messages
- 622
I have a spreadsheet with an Access query that returns data by date.
The query returns an "x" in a column next to each date where a match is found in another table in the database.
In Excel, I'd like to replace the x's with the result of this function:
I figure this would be much more difficult to do with the query, and easier to handle in Excel.
Any thoughts?
I'm not certain if you can insert a spreadsheet function in the Replacement: area of a .Replace statement. See below:
The query returns an "x" in a column next to each date where a match is found in another table in the database.
In Excel, I'd like to replace the x's with the result of this function:
Rich (BB code):
=percentile.inc("D:D", 0.90)
I figure this would be much more difficult to do with the query, and easier to handle in Excel.
Any thoughts?
I'm not certain if you can insert a spreadsheet function in the Replacement: area of a .Replace statement. See below:
Rich (BB code):
Sheets("Sheet1").Range("R:R").Replace What:="x", Replacement:=percentile.inc("D:D", 0.90), LookAt:=xlWhole, SearchOrder:=xlByRows, MatchCase:=False, _
SearchFormat:=False, ReplaceFormat:=False