How to look at multiple columns in a row and return the last "Not Blank" cells in the current cell
I am wanting to populate the last date that a quote was done (Quoted Price Option date) into the "Date Last Quoted Price" column. Is there a formula that will do this? Every row will have the last date a quote was done in a different column.
Thanks for your help!
Tracey
Answers
-
Hello @Tracey Tume
Try this
=INDEX([Quote Price incl GST]@row:[Quoted Price Option 10]@row, 1, COUNTIFS([Quote Price incl GST]@row:[Quoted Price Option 10]@row, <>""))
This approach uses the optional column index portion of the INDEX function and assumes the column entries are always sequential moving across your sheet. We use the COUNTIFS to get a count of non-blank cells in the row. This COUNTIFS value is used to indicate the column number that you wish to pull in. If the screenshot isn't showing all of the columns, beginning at the first column up to the columns you need, you'll need to add the quantity of columns that are to the left of the columns shown in the screenshot to the COUNTIFS . For example 5+COUNTIFS([column name]:[column names], <>""). Columns to the right of these columns do not need to be added.
Does this work for you?
Kelly
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!