+ Reply to Thread
Results 1 to 7 of 7

Need help with "IF"- functions and other

  1. #1
    Registered User
    Join Date
    01-17-2019
    Location
    Germany
    MS-Off Ver
    varying
    Posts
    19

    Question Need help with "IF"- functions and other

    Hello,
    i need to evaluate a paleo diversity database in RStudio but to be able to do the i need to "clean up" the database first. I do not have much excel experience yet so please excuse my probably mundane questions/requests.

    1. IF Function
    In the Database longitudinal and latidutinal coordinates are not provided uniformly. They're usually given in degrees but sometimes they're missing the decimal point. (50.24° = 50240)
    My idea was to solve this by using an IF function as follows:

    IF X > 90 or X< -90 divide by 1000 else return original value

    i've already tried to do it myself using the help function but it wouldnt work.


    2. Filtering for a value
    The ranks to which certain fossils are characterized vary (e.g. Kingdom, Genus, Species)
    I need to get rid of everything (all rows) that do not have the value "genus or species" in one of their columns
    I also need a function that gets rid of all rows that have blanks/empty cells in a specific column.

    3. Dividing values sperated by a space
    If species are given like "Tetradium huronense" i need to get rid of everything after the genus (e.g. Tetradium huronense -> Tetradium)
    maybe this could be done with a split funtion of some sort


    4. Filter to get a list of all contained values
    The lithology in which those fossils were found is given for most of the fossils. To evaluate i need to get a list that contains all entered values for a certain column (e.g. 5000*carbonate, 2500*shale etc.)


    Please help me solve this by giving step by step instructions since all ive done so far using excel was plotting graphs and doing some simple automated calculations.


    Thanks in advance
    afridelle
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Need help with "IF"- functions and other

    Please start one thread per issue and give each thread a suitable title. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    01-17-2019
    Location
    Germany
    MS-Off Ver
    varying
    Posts
    19

    Re: Need help with "IF"- functions and other

    Im sorry,
    i wasnt able to edit the attachments in the first post so i reposted it.
    couldnt think of any short title thats more suitable

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Need help with "IF"- functions and other

    You need one thread per question, NOT four questions in one thread, please.

  5. #5
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Need help with "IF"- functions and other

    Try this formula

    =IF(ABS(L8)>90,L8/10^(LEN(ABS(L8))-2),0)
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  6. #6
    Registered User
    Join Date
    01-17-2019
    Location
    Germany
    MS-Off Ver
    varying
    Posts
    19

    Re: Need help with "IF"- functions and other

    Thanks mehmetcik
    ive tried the formula and it does not work. Excel wont recognize the second and third "L8" as chart coordinates (they're not colored blue in the input bar)
    ive ran into the same issue when trying to write a function myself.

    Also im not entirely sure what the function is trying to do. since you've used the "L" column i assume it tries to convert the (modern day) longitude values in some way. These range from 180 to -180. Sorry for not clarifying that in the post.
    For my purpose i need the conversion for the paleolatitude (paleolat column) which ranges from 90 to -90 and is given in another format than the modern day values (e.g. eighter as 51.234 or 51234)

    afridelle
    Last edited by afridelle; 01-17-2019 at 10:41 AM.

  7. #7
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Need help with "IF"- functions and other

    Sample attached.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Help on "IF", "FIND", "SUBSTITUTE", & "LEFT/RIGHT" FUNCTIONS
    By pooja135 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-20-2018, 03:56 PM
  2. [SOLVED] 2 axis scale using INDEX, SUMPRODUCT, and "greater than" and "less than" functions
    By Clooney003 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-20-2017, 01:12 PM
  3. [SOLVED] "ElseIf" and "Lookup" type functions on 1 Spreadsheet
    By ReedDOT in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-16-2013, 12:03 PM
  4. [SOLVED] I want to develop a formula that mixes "If" and "Vlookup" functions
    By chris.slater in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-13-2012, 08:07 AM
  5. Replies: 3
    Last Post: 08-28-2010, 09:31 AM
  6. Replies: 5
    Last Post: 06-26-2006, 09:23 PM
  7. [SOLVED] Please add a "sheet" function like "row" and "column" functions
    By Spreadsheet Monkey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-08-2005, 12:15 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1