INDEX formula

JennS_
JennS_ ✭✭
edited 01/12/23 inFormulas and Functions

I am trying to pull in a date based on a specific criteria from another sheet (sheet is called SOW BB28-A tracking). For example, I have an item (Fleet No ) and a warranty start date. I want to pull the warranty date into a master sheet based on the fleet number. I have tried the INDEX formula a million diff ways and its not working for me.

=INDEX({SOW BB28-A Tracking Range 2}, MATCH([Fleet No]@row, {SOW BB28-A range 3}, 0)

I know this should be so easy. What am I missing??

Answers

  • I am not understanding your question exactly, but you must Index a piece of information, if you can match a piece of information on your current sheet with the same information on the sheet you reference. When the info matches, the Indexed info will be pulled over:

    Index(date wanted on referenced sheet), match(Fleet[email protected], Fleet no on the referenced sheet)

  • JennS_
    JennS_ ✭✭
    edited 01/11/23

    I have a fleet number on 2 separate sheets. I want to pull the date that the warranty starts for a specific fleet number and have it update in the other sheet for the matching fleet number. See master sheet below. I am trying to pull the warranty date from second image below, into this sheet where the fleet numbers match.

    image.png
    image.png


  • Paul H
    Paul H ✭✭✭✭✭✭

    Might just be missing a bracket at the end

    =INDEX({SOW BB28-A Tracking Range 2}, MATCH([Fleet No]@row, {SOW BB28-A range 3}, 0))

  • JennS_
    JennS_ ✭✭

    Hi- that did not work for me. I really can't figure it out!

  • Genevieve P.
    Genevieve P. Employee Admin

    Hi@JennS_

    You formula syntax is correct - I'd like to try troubleshooting a few different things.

    First, check to make sure your two ranges are looking at the right columns, and that the full columns are selected

    • {SOW BB28-A Tracking Range 2} = Warranty Start Date
    • {SOW BB28-A range 3} = Fleet No

    If that's correct, the next thing to check is that the formula is finding a match for your Fleet No in the current sheet.

    =COUNTIF({SOW BB28-A range 3}, [Fleet No]@row)

    ^This should give you a number. If you're getting 0, then the formula isn't finding a match between those two columns - in this instance we'd need to know what type of columns your two [Fleet No] columns are, and how the number is created/input.

    A final note... I see that your formula states [Fleet No]@row but the column name looks to be [Fleet No.] with a period. Make sure that your column name is exactly the same in the formula as in your current sheet

    If this hasn't helped, let us know if you're seeing a formula error message (and which one) or if you're getting an incorrect result!

    Thanks,

    Genevieve

  • JennS_
    JennS_ ✭✭
    edited 01/12/23

    Genevieve - Thank you for your notes. I checked all of these items to the formula below:

    =INDEX({SOW BB28-A Warranty Start Date}, MATCH([Fleet No.]@row), {SOW BB28-A Tracking Fleet No}, 0))

    The error I get is #UNPARSEABLE

    I even tried this:

    =INDEX({SOW BB28-A Warranty Start Date}, COUNTIF([Fleet No.]@row), {SOW BB28-A Tracking Fleet No}, 0))

    它仍然不工作。问题是一旦你limited within a sheet to doing this type of formula? For instance, I have another column that also does an index to another sheet. Could that be causing a problem? I have also used linked cells in my master sheet, but I have so many linked cells that I was trying to make it easier to pull information by index formula. Any additional help is appreciated.

  • Genevieve P.
    Genevieve P. Employee Admin

    Hi@JennS_

    For your first formula, there's an extra ) after MATCH(___) that should be removed:

    =INDEX({SOW BB28-A Warranty Start Date}, MATCH([Fleet No.]@row, {SOW BB28-A Tracking Fleet No}, 0))


    For the COUNTIF formula, I meant to test it fully on it's own, simply to see if it's finding a match at all! This is a troubleshooting step, not something for your end formula

    =COUNTIF({SOW BB28-A range 3}, [Fleet No]@row)


    But before you do that, see if removing the extra ) made the first formula work! Even if you're using INDEX(MATCH in a different column, you should still be able to use it in this column. Just make sure you're not copy/pasting the same formula andediting referencesas that will update the reference across the entire sheet. Instead, create new references from scratch to make sure it's looking at the right column.

    让我知道帮助!

  • JennS_
    JennS_ ✭✭

    @Genevieve P.

    Okay! I updated the first formula and this time I got #INVALID COLUMN VALUE. Progress !?

    And as an FYI- the countif verification did work. It returned a number of 1.

  • Genevieve P.
    Genevieve P. Employee Admin

    Hi@JennS_

    That's great that the COUNTIF works! :) That means that it should find a match.

    #无效的公司lumn Value generally means that the column type is different than the value you're putting in it. Can you confirm thatbothcolumns are Date type of columns?

    {SOW BB28-A Warranty Start Date} and the column where the formula is being input?

  • JennS_
    JennS_ ✭✭

    @Genevieve P.

    I just confirmed, and they were not both date columns! So i updated it and it WORKED! I can't believe it was something so simple. I appreciate your help!!! You are the best.

  • Genevieve P.
    Genevieve P. Employee Admin

    No problem at all! I'm glad we got there in the end

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out theFormula Handbook template!
If you want to know the percentage over\/under the Contract Amount<\/strong>, your formula (placed the [Percentage] column) would be:<\/p>

=([Contract amount]@row - [Install Labor (actual)]@row) \/ [Contract amount]@row<\/p>

Be sure the \"Percentage\" column is formatted as a percentage. Positive numbers show that your total spend is under<\/strong> the [Contract amount]. Negative values show your total spend is over<\/strong>.<\/p>

You can use a similar formula to measure how far over\/under your [Labor $ (quoted)] amount is from your [Install Labor (actual)] amount.<\/p>

=([Labor $ (quoted)]@row - [Install Labor (actual)]@row) \/ [Labor $ (quoted)]@row<\/p>

Here, though, a negative value shows that you are OVER<\/strong> the estimate. A positive value shows you are at or UNDER<\/strong> the estimate.<\/p>

\n
\n \n \"Screenshot<\/img><\/a>\n <\/div>\n<\/div>\n


<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[{"tagID":254,"urlcode":"Formulas","name":"Formulas"}]},{"discussionID":107038,"type":"question","name":"Modified Date loses detail when referenced","excerpt":"Application: Trying to capture and display a 'sheet last modified' value on a dashboard. Approach: Using a formula in the sheet summary sidebar to find the max value of all timestamps in the 'Modified' column. Formula is as follows and is functioning as expected. =MAX([Modified]:[Modified]) Problem: The displayed value…","snippet":"Application: Trying to capture and display a 'sheet last modified' value on a dashboard. Approach: Using a formula in the sheet summary sidebar to find the max value of all…","categoryID":322,"dateInserted":"2023-06-28T17:43:23+00:00","dateUpdated":null,"dateLastComment":"2023-06-28T21:44:02+00:00","insertUserID":154049,"insertUser":{"userID":154049,"name":"Rob W.","url":"https:\/\/community.smartsheet.com\/profile\/Rob%20W.","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-28T21:44:18+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":154049,"lastUser":{"userID":154049,"name":"Rob W.","url":"https:\/\/community.smartsheet.com\/profile\/Rob%20W.","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-28T21:44:18+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":18,"score":null,"hot":3375964045,"url":"https:\/\/community.smartsheet.com\/discussion\/107038\/modified-date-loses-detail-when-referenced","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/107038\/modified-date-loses-detail-when-referenced","format":"Rich","lastPost":{"discussionID":107038,"commentID":382970,"name":"Re: Modified Date loses detail when referenced","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/382970#Comment_382970","dateInserted":"2023-06-28T21:44:02+00:00","insertUserID":154049,"insertUser":{"userID":154049,"name":"Rob W.","url":"https:\/\/community.smartsheet.com\/profile\/Rob%20W.","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-28T21:44:18+00:00","banned":0,"punished":0,"private":false,"label":"✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-28T21:29:15+00:00","dateAnswered":"2023-06-28T18:46:15+00:00","acceptedAnswers":[{"commentID":382932,"body":"

Set the Sheet Summary field as text\/number then add +\"//www.santa-greenland.com/community/discussion/99569/\" to the end of the MAX function (plus quote quote) to convert it into a text string.<\/p>

=MAX([Modified]:[Modified]) + \"//www.santa-greenland.com/community/discussion/99569/\"<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[]},{"discussionID":107030,"type":"question","name":"How to subtract percentages?","excerpt":"I created a new column % Not complete and am trying to add a formula to have =100%-[%Complete]@row. Answer #UNPARSEABLE I have also tried =100-%Complete]@row. Answer: This will populate an answer, however I cannot adjust the formatting from % to number Example: %Complete = 13% Correct answer should display 87% Second…","snippet":"I created a new column % Not complete and am trying to add a formula to have =100%-[%Complete]@row. Answer #UNPARSEABLE I have also tried =100-%Complete]@row. Answer: This will…","categoryID":322,"dateInserted":"2023-06-28T15:56:57+00:00","dateUpdated":"2023-06-28T16:22:44+00:00","dateLastComment":"2023-06-28T16:35:48+00:00","insertUserID":150369,"insertUser":{"userID":150369,"name":"v.winters","url":"https:\/\/community.smartsheet.com\/profile\/v.winters","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!p_DnqRu23us!e98n5_-JJOs!fH1r3mTuHpU","dateLastActive":"2023-06-28T16:34:54+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":150369,"lastUserID":150369,"lastUser":{"userID":150369,"name":"v.winters","url":"https:\/\/community.smartsheet.com\/profile\/v.winters","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!p_DnqRu23us!e98n5_-JJOs!fH1r3mTuHpU","dateLastActive":"2023-06-28T16:34:54+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":23,"score":null,"hot":3375939165,"url":"https:\/\/community.smartsheet.com\/discussion\/107030\/how-to-subtract-percentages","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/107030\/how-to-subtract-percentages","format":"Rich","tagIDs":[254],"lastPost":{"discussionID":107030,"commentID":382885,"name":"Re: How to subtract percentages?","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/382885#Comment_382885","dateInserted":"2023-06-28T16:35:48+00:00","insertUserID":150369,"insertUser":{"userID":150369,"name":"v.winters","url":"https:\/\/community.smartsheet.com\/profile\/v.winters","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!p_DnqRu23us!e98n5_-JJOs!fH1r3mTuHpU","dateLastActive":"2023-06-28T16:34:54+00:00","banned":0,"punished":0,"private":false,"label":"✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-28T16:35:51+00:00","dateAnswered":"2023-06-28T16:31:26+00:00","acceptedAnswers":[{"commentID":382883,"body":"

@v.winters<\/a> <\/p>

If the two percent columns are formatted as percent columns (see screenshot), then the % Not Complete column would have this formula: <\/p>

=1 - [%Complete]<\/em>@row<\/p>

\n
\n \n \"Menu.PNG\"<\/img><\/a>\n <\/div>\n<\/div>\n

Hope this helps!<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[{"tagID":254,"urlcode":"Formulas","name":"Formulas"}]}],"initialPaging":{"nextURL":"https:\/\/community.smartsheet.com\/api\/v2\/discussions?page=2&categoryID=322&includeChildCategories=1&type%5B0%5D=Question&excludeHiddenCategories=1&sort=-hot&limit=3&expand%5B0%5D=all&expand%5B1%5D=-body&expand%5B2%5D=insertUser&expand%5B3%5D=lastUser&status=accepted","prevURL":null,"currentPage":1,"total":10000,"limit":3},"title":"Trending in Formulas and Functions ","subtitle":null,"description":null,"noCheckboxes":true,"containerOptions":[],"discussionOptions":[]}">

Trending in Formulas and Functions